Skip to content

fix: add bsc validation error for new payload#276

Closed
sysvm wants to merge 5 commits intomendel-hffrom
fix-peer-disconnect
Closed

fix: add bsc validation error for new payload#276
sysvm wants to merge 5 commits intomendel-hffrom
fix-peer-disconnect

Conversation

@sysvm
Copy link
Contributor

@sysvm sysvm commented Feb 28, 2026

Description

#258
Currently, the reth-bsc node occasionally experiences bad blocks, and the cause is a problem with the computing of its own node. This fix means that when there is a problem with the node itself, no penalty will be imposed on the peer. This can prevent all cases where peers are disconnected.

- Define BSC_VALIDATION_ERROR_PREFIX constant to replace fragile string matching
- Use starts_with() instead of contains() for more precise error identification
- Change ImportFut return type to (Option<Outcome>, B256) to carry block hash
- Always clean up queued_blocks after import completes, allowing block retry
  on transient BSC validation errors
- Add unit test for BSC validation error skip path

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@constwz
Copy link
Contributor

constwz commented Mar 23, 2026

#297
Here is a new PR that addresses this issue.

@constwz constwz closed this Mar 23, 2026
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.

4 participants