mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 04:37:13 +00:00
Merge branch 'payload-attestation-committee-cache' into fc-compliance
This commit is contained in:
@@ -1542,6 +1542,14 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns whether the execution payload for a block has been received.
|
||||
///
|
||||
/// Returns `false` for unknown blocks and pre-Gloas nodes.
|
||||
pub fn is_payload_received(&self, block_root: &Hash256) -> bool {
|
||||
self.proto_array.is_payload_received(block_root)
|
||||
&& self.is_finalized_checkpoint_or_descendant(*block_root)
|
||||
}
|
||||
|
||||
/// Returns whether the proposer should extend the execution payload chain of the given block.
|
||||
pub fn should_extend_payload(&self, block_root: &Hash256) -> Result<bool, Error<T::Error>> {
|
||||
let proposer_boost_root = self.fc_store.proposer_boost_root();
|
||||
|
||||
Reference in New Issue
Block a user