mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(engine): emit events with executed blocks (#14341)
This commit is contained in:
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user