Skip to content

Conversation

@Snezhkko
Copy link
Contributor

@Snezhkko Snezhkko commented Dec 6, 2025

Previously DisconnectReason.InvalidBlockRangeUpdate was not handled explicitly in
DisconnectReasonExtension.ToEthDisconnectReason and therefore fell through to EthDisconnectReason.Other. This meant that invalid BlockRangeUpdate messages in Eth69ProtocolHandler were reported on the wire as a generic “Other” disconnect instead of a protocol breach, and static peers sending such invalid updates were treated more leniently than other sync-related protocol violations. This change maps InvalidBlockRangeUpdate to EthDisconnectReason.BreachOfProtocol, aligning it with the rest of the sync validation errors, improving disconnect diagnostics and ensuring consistent handling for both regular and static peers.

@LukaszRozmej LukaszRozmej merged commit 959d261 into NethermindEth:master Dec 7, 2025
80 checks passed
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