mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 12:47:05 +00:00
Gloas lookup sync boilerplate (#9322)
Implements the boring boilerplate to send envelopes by root requests and process them. Pre-step to - https://github.com/sigp/lighthouse/pull/9155 Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com>
This commit is contained in:
@@ -6339,6 +6339,12 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
.contains_block(root)
|
||||
}
|
||||
|
||||
pub fn envelope_is_known_to_fork_choice(&self, root: &Hash256) -> bool {
|
||||
self.canonical_head
|
||||
.fork_choice_read_lock()
|
||||
.is_payload_received(root)
|
||||
}
|
||||
|
||||
/// Determines the beacon proposer for the next slot. If that proposer is registered in the
|
||||
/// `execution_layer`, provide the `execution_layer` with the necessary information to produce
|
||||
/// `PayloadAttributes` for future calls to fork choice.
|
||||
|
||||
Reference in New Issue
Block a user