mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-01 20:04:41 +00:00
should_extend_payload and gossip bid verification changes
This commit is contained in:
@@ -1631,9 +1631,10 @@ where
|
||||
|
||||
/// 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 current_slot = self.fc_store.get_current_slot();
|
||||
let proposer_boost_root = self.fc_store.proposer_boost_root();
|
||||
self.proto_array
|
||||
.should_extend_payload::<E>(block_root, proposer_boost_root)
|
||||
.should_extend_payload::<E>(block_root, current_slot, proposer_boost_root)
|
||||
.map_err(Error::ProtoArrayStringError)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user