diff --git a/beacon_node/beacon_chain/src/finalized_head.rs b/beacon_node/beacon_chain/src/finalized_head.rs index 76a20a2c2..ac2917fdb 100644 --- a/beacon_node/beacon_chain/src/finalized_head.rs +++ b/beacon_node/beacon_chain/src/finalized_head.rs @@ -7,6 +7,7 @@ where T: ClientDB, U: SlotClock, { + /// Update the justified head to some new values. pub fn update_finalized_head( &self, new_beacon_block: BeaconBlock, @@ -23,6 +24,8 @@ where ); } + /// Returns a read-lock guarded `CheckPoint` struct for reading the justified head (as chosen, + /// indirectly, by the fork-choice rule). pub fn finalized_head(&self) -> RwLockReadGuard { self.finalized_head.read() }