File tree Expand file tree Collapse file tree
crates/consensus/beacon/src/engine Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1734,14 +1734,6 @@ where
17341734 Ok ( status) => {
17351735 match status {
17361736 InsertPayloadOk :: Inserted ( BlockStatus :: Valid ( _) ) => {
1737- let elapsed = start. elapsed ( ) ;
1738- let event_block = Arc :: new ( block) ;
1739- let event = BeaconConsensusEngineEvent :: CanonicalBlockAdded (
1740- event_block,
1741- elapsed,
1742- ) ;
1743- self . event_sender . notify ( event) ;
1744-
17451737 // block is connected to the canonical chain and is valid.
17461738 // if it's not connected to current canonical head, the state root
17471739 // has not been validated.
@@ -1759,6 +1751,14 @@ where
17591751 )
17601752 }
17611753 }
1754+
1755+ let elapsed = start. elapsed ( ) ;
1756+ let event_block = Arc :: new ( block) ;
1757+ let event = BeaconConsensusEngineEvent :: CanonicalBlockAdded (
1758+ event_block,
1759+ elapsed,
1760+ ) ;
1761+ self . event_sender . notify ( event) ;
17621762 }
17631763 InsertPayloadOk :: Inserted ( BlockStatus :: Disconnected {
17641764 head,
You can’t perform that action at this time.
0 commit comments