Add block header warp sync patch.#1792
Merged
sam0x17 merged 4 commits intodevnet-readyfrom Jul 1, 2025
Merged
Conversation
Collaborator
Author
|
Should I just remove the feature (warp-sync-patch)? We have docker files without the new flag. @sam0x17 |
Collaborator
Author
|
I removed the new feature because of the existing docker workflows. Here is the new build command: |
l0r1s
approved these changes
Jul 1, 2025
Collaborator
There was a problem hiding this comment.
Tested on AMD Ryzen 9 7950X3D, works like a charm:
2025-07-01 17:53:33 💤 Idle (40 peers), best: #5902580 (0x3451…ee4b), finalized #5902232 (0x5743…57c5), ⬇ 13.4kiB/s ⬆ 12.8kiB/s
2025-07-01 17:53:36 🏆 Imported #5902581 (0x3451…ee4b → 0x2178…13ba)
2025-07-01 17:53:38 💤 Idle (40 peers), best: #5902581 (0x2178…13ba), finalized #5902232 (0x5743…57c5), ⬇ 45.4kiB/s ⬆ 28.8kiB/s
2025-07-01 17:53:43 💤 Idle (40 peers), best: #5902581 (0x2178…13ba), finalized #5902232 (0x5743…57c5), ⬇ 15.8kiB/s ⬆ 15.4kiB/s
2025-07-01 17:53:48 🏆 Imported #5902582 (0x2178…13ba → 0xd86a…0027)
2025-07-01 17:53:48 💤 Idle (40 peers), best: #5902582 (0xd86a…0027), finalized #5902232 (0x5743…57c5), ⬇ 143.9kiB/s ⬆ 142.0kiB/s
2025-07-01 17:53:53 💤 Idle (40 peers), best: #5902582 (0xd86a…0027), finalized #5902232 (0x5743…57c5), ⬇ 36.2kiB/s ⬆ 27.5kiB/s
2025-07-01 17:53:58 💤 Idle (40 peers), best: #5902582 (0xd86a…0027), finalized #5902232 (0x5743…57c5), ⬇ 23.8kiB/s ⬆ 22.9kiB/s
2025-07-01 17:54:00 🏆 Imported #5902583 (0xd86a…0027 → 0x0527…004b)
2025-07-01 17:54:03 💤 Idle (40 peers), best: #5902583 (0x0527…004b), finalized #5902232 (0x5743…57c5), ⬇ 43.3kiB/s ⬆ 32.9kiB/s
2025-07-01 17:54:08 💤 Idle (40 peers), best: #5902583 (0x0527…004b), finalized #5902232 (0x5743…57c5), ⬇ 39.9kiB/s ⬆ 38.4kiB/s
2025-07-01 17:54:12 🏆 Imported #5902584 (0x0527…004b → 0x17c2…5ea7)
2025-07-01 17:54:13 💤 Idle (40 peers), best: #5902584 (0x17c2…5ea7), finalized #5902232 (0x5743…57c5), ⬇ 180.1kiB/s ⬆ 164.0kiB/s
2025-07-01 17:54:18 💤 Idle (40 peers), best: #5902584 (0x17c2…5ea7), finalized #5902232 (0x5743…57c5), ⬇ 50.2kiB/s ⬆ 48.7kiB/s
2025-07-01 17:54:23 💤 Idle (40 peers), best: #5902584 (0x17c2…5ea7), finalized #5902232 (0x5743…57c5), ⬇ 13.0kiB/s ⬆ 12.0kiB/s
2025-07-01 17:54:25 🏆 Imported #5902585 (0x17c2…5ea7 → 0x081c…ba64)
sam0x17
approved these changes
Jul 1, 2025
Collaborator
|
Tested also with the docker image: docker build --target subtensor -f Dockerfile -t debug-prod1 .then run: docker run -d --name prod1 debug-prod1 --chain ./chainspecs/raw_spec_finney.json --sync=warp --port 30333 --no-grandpa --no-mdns --database paritydb --db-cache 4096 --trie-cache-size 2048Everything works correctly ✅ |
This was referenced Jul 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces a temporary patch for warp sync that was broken after the recent bad blocks issue. The patch switches the warp sync target block header provider from the grandpa to the exact block header that we get from our own API (wss://archive.chain.opentensor.ai). The second part of the patch adds a reference to the patched
grandpacrate from Polkadot-sdk (version polkadot-stable2409-7).Additional comments:
warp-sync-patch.granpdacrate as well.nodeCargo.toml contains a new dependency (rustls-webpki) that is required for Linux compilationBuild command (updated)
Run command
Tested configuration
Type of Change
Checklist
cargo fmtandcargo clippyto ensure my code is formatted and linted correctly