mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 20:57:10 +00:00
add IL service to download IL from EL, sign in VC, and publish via BN
add HTTP API to the beacon node to retrieve IL from the EL. add IL service in the validator client to download the IL from the beacon node. add logic to the beacon node to package the IL for the validator client. add HTTP API to the beacon node to gossip signed ILs. the validator client will sign the ILs from the beacon node and resubmit to the beacon node to gossip.
This commit is contained in:
@@ -139,6 +139,11 @@ impl<E: EthSpec> CachedHead<E> {
|
||||
self.snapshot.beacon_block.slot()
|
||||
}
|
||||
|
||||
/// Returns the `execution_payload.block_hash` of the block at the head of the beacon chain.
|
||||
pub fn head_hash(&self) -> Option<ExecutionBlockHash> {
|
||||
self.head_hash
|
||||
}
|
||||
|
||||
/// Returns the `Fork` from the `BeaconState` at the head of the chain.
|
||||
pub fn head_fork(&self) -> Fork {
|
||||
self.snapshot.beacon_state.fork()
|
||||
|
||||
Reference in New Issue
Block a user