Bump P2P protocol version and guard Toccata IBD#997
Merged
michaelsutton merged 7 commits intoMay 14, 2026
Conversation
coderofstuff
requested changes
May 13, 2026
Advertise protocol 10 for Toccata while normalizing TN12 peers that still advertise protocol 9 into the same Toccata flow set (now named 10).
Start rejecting outdated peer protocol versions one day before toccata activation
Reject stale pre-activation pruning points after Toccata should have produced a newer pruning point, and reject post-activation pruning points from peers not using the Toccata protocol version.
Check the IBD relay block against the active forked block version before requesting the pruning proof, and keep the pruning-point freshness guard focused on stale pre-activation syncers.
Keep protocol 10 support available locally, but advertise protocol 9 on networks without a scheduled Toccata activation. This lets future enforcing peers reject pre-rollout mainnet nodes while automatically advertising protocol 10 once activation is configured.
5523fca to
18af1b4
Compare
2ad9fd8 to
e4ecd53
Compare
someone235
approved these changes
May 14, 2026
coderofstuff
approved these changes
May 14, 2026
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.
Bumps the P2P protocol version for Toccata while preserving TN12 launch compatibility by normalizing its protocol 9 peers locally.
Adds pre-activation version filtering for synced nodes and an IBD pruning point freshness guard so fresh nodes avoid syncing from outdated or stale pre-Toccata peers.