feat(engine): emit events with executed blocks (#14341)

This commit is contained in:
Roman Krasiuk
2025-02-09 12:07:10 +01:00
committed by GitHub
parent 46d3b6a32e
commit a215256075
6 changed files with 41 additions and 41 deletions

View File

@ -250,7 +250,8 @@ impl NodeState {
}
}
}
BeaconConsensusEngineEvent::CanonicalBlockAdded(block, elapsed) => {
BeaconConsensusEngineEvent::CanonicalBlockAdded(executed, elapsed) => {
let block = executed.sealed_block();
info!(
number=block.number(),
hash=?block.hash(),
@ -272,7 +273,8 @@ impl NodeState {
info!(number=head.number(), hash=?head.hash(), ?elapsed, "Canonical chain committed");
}
BeaconConsensusEngineEvent::ForkBlockAdded(block, elapsed) => {
BeaconConsensusEngineEvent::ForkBlockAdded(executed, elapsed) => {
let block = executed.sealed_block();
info!(number=block.number(), hash=?block.hash(), ?elapsed, "Block added to fork chain");
}
}