Skip to content

fix: nodes would still try and build ontop a bad eth block#125

Merged
daltoncoder merged 3 commits intomainfrom
d/debug-bad-eth-block
Feb 13, 2026
Merged

fix: nodes would still try and build ontop a bad eth block#125
daltoncoder merged 3 commits intomainfrom
d/debug-bad-eth-block

Conversation

@daltoncoder
Copy link
Collaborator

The problem was legacy code overwriting forkchoice.head_block_hash in application crate. We get a valid forkchoice from the finalizer that we need to use without any modifications. Also added a feature flag "bad-blocks" that will replace the engine client with one that makes an invalid payload every 4 blocks to help with debugging and testing things like this later.
cargo run --bin testnet --features bad-blocks will start a testnet with an invalid ethereum block in the chain every 4 blocks and will still move forward just fine

@daltoncoder daltoncoder force-pushed the d/debug-bad-eth-block branch 2 times, most recently from c969864 to 5ca0f21 Compare February 13, 2026 15:04
@daltoncoder daltoncoder force-pushed the d/debug-bad-eth-block branch from 5ca0f21 to 40e456e Compare February 13, 2026 15:06
@daltoncoder daltoncoder merged commit fbd8fb9 into main Feb 13, 2026
4 checks passed
@daltoncoder daltoncoder deleted the d/debug-bad-eth-block branch February 13, 2026 20:55
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.

1 participant