Skip to content

Bump P2P protocol version and guard Toccata IBD#997

Merged
michaelsutton merged 7 commits into
kaspanet:toccatafrom
michaelsutton:p2p-toccata-version
May 14, 2026
Merged

Bump P2P protocol version and guard Toccata IBD#997
michaelsutton merged 7 commits into
kaspanet:toccatafrom
michaelsutton:p2p-toccata-version

Conversation

@michaelsutton
Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Collaborator

@coderofstuff coderofstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comments

Comment thread protocol/flows/src/ibd/flow.rs Outdated
Comment thread protocol/flows/src/ibd/flow.rs Outdated
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.
@michaelsutton michaelsutton force-pushed the p2p-toccata-version branch from 5523fca to 18af1b4 Compare May 14, 2026 12:51
@michaelsutton michaelsutton force-pushed the p2p-toccata-version branch from 2ad9fd8 to e4ecd53 Compare May 14, 2026 13:23
@michaelsutton michaelsutton merged commit f94053a into kaspanet:toccata May 14, 2026
8 checks passed
@michaelsutton michaelsutton deleted the p2p-toccata-version branch May 14, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants