feat(engine-util): reorg interceptor (#10173)

This commit is contained in:
Roman Krasiuk
2024-08-07 12:50:49 -07:00
committed by GitHub
parent a706206695
commit d62ce79535
11 changed files with 502 additions and 15 deletions

View File

@@ -182,6 +182,12 @@ where
let consensus_engine_stream = UnboundedReceiverStream::from(consensus_engine_rx)
.maybe_skip_fcu(node_config.debug.skip_fcu)
.maybe_skip_new_payload(node_config.debug.skip_new_payload)
.maybe_reorg(
ctx.blockchain_db().clone(),
ctx.components().evm_config().clone(),
reth_payload_validator::ExecutionPayloadValidator::new(ctx.chain_spec()),
node_config.debug.reorg_frequency,
)
// Store messages _after_ skipping so that `replay-engine` command
// would replay only the messages that were observed by the engine
// during this run.