Skip to content

Commit 8eca77a

Browse files
committed
Fix bugs
1 parent 15d6b71 commit 8eca77a

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

beacon_node/beacon_chain/src/beacon_chain.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3910,7 +3910,8 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
39103910

39113911
// Use the blocking method here so that we don't form a queue of these functions when
39123912
// routinely calling them.
3913-
self.update_execution_engine_forkchoice_blocking(current_slot)?;
3913+
self.update_execution_engine_forkchoice_async(current_slot)
3914+
.await?;
39143915
}
39153916

39163917
Ok(())
@@ -3969,10 +3970,15 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
39693970
return Ok(());
39703971
};
39713972

3973+
let finalized_root = if head.finalized_checkpoint.root == Hash256::zero() {
3974+
// De-alias `0x00..00` to the genesis block root.
3975+
self.genesis_block_root
3976+
} else {
3977+
head.finalized_checkpoint.root
3978+
};
39723979
// Deadlock warning:
39733980
//
39743981
// The same as above, but the lock on `self.fork_choice`.
3975-
let finalized_root = head.finalized_checkpoint.root;
39763982
let finalized_execution_block_hash = self
39773983
.fork_choice
39783984
.read()

0 commit comments

Comments
 (0)