Skip to content

Rework warp sync patch to enable warp sync on testnet.#1818

Merged
sam0x17 merged 3 commits intodevnet-readyfrom
warp-sync-reworked
Jul 6, 2025
Merged

Rework warp sync patch to enable warp sync on testnet.#1818
sam0x17 merged 3 commits intodevnet-readyfrom
warp-sync-reworked

Conversation

@shamil-gadelshin
Copy link
Collaborator

@shamil-gadelshin shamil-gadelshin commented Jul 4, 2025

Description

This PR changes our patched warp sync version from the custom target header provider to the regular warp proof (NetworkProvider). We restore the default warp sync behavior and change the grandpa patch to accept configuration both for a changed initial set ID and block hashes to skip justifications.

New grandpa patch: https://github.com/opentensor/grandpa/tree/update-polkadot-stable2412-6-v2

node-subtensor --chain ./subtensor/chainspecs/raw_spec_finney.json --base-path <BASE_PATH> --sync=warp --port 30333 --no-mdns --database paritydb --db-cache 4096 --trie-cache-size 2048

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Other (please describe):

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have run cargo fmt and cargo clippy to ensure my code is formatted and linted correctly
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@shamil-gadelshin shamil-gadelshin requested review from l0r1s and sam0x17 July 4, 2025 07:59
@shamil-gadelshin shamil-gadelshin added the skip-cargo-audit This PR fails cargo audit but needs to be merged anyway label Jul 4, 2025
l0r1s
l0r1s previously approved these changes Jul 4, 2025
sam0x17
sam0x17 previously approved these changes Jul 4, 2025
@sam0x17 sam0x17 dismissed stale reviews from l0r1s and themself via 5d03c5d July 5, 2025 05:22
@sam0x17 sam0x17 merged commit ebf54b2 into devnet-ready Jul 6, 2025
53 of 55 checks passed
@sam0x17 sam0x17 mentioned this pull request Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-cargo-audit This PR fails cargo audit but needs to be merged anyway

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants