mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 04:37:13 +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:
@@ -54,8 +54,8 @@ use types::{
|
||||
};
|
||||
use types::{
|
||||
BeaconStateError, BlindedPayload, ChainSpec, Epoch, ExecPayload, ExecutionPayloadBellatrix,
|
||||
ExecutionPayloadCapella, ExecutionPayloadElectra, FullPayload, ProposerPreparationData,
|
||||
PublicKeyBytes, Signature, Slot,
|
||||
ExecutionPayloadCapella, ExecutionPayloadElectra, FullPayload, InclusionListTransactions,
|
||||
ProposerPreparationData, PublicKeyBytes, Signature, Slot,
|
||||
};
|
||||
|
||||
mod block_hash;
|
||||
@@ -1951,6 +1951,19 @@ impl<E: EthSpec> ExecutionLayer<E> {
|
||||
Err(Error::NoPayloadBuilder)
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn get_inclusion_list(
|
||||
&self,
|
||||
parent_hash: Hash256,
|
||||
) -> Result<InclusionListTransactions<E>, Error> {
|
||||
debug!(self.log(), "Requesting inclusion list from EL"; "parent_hash" => %parent_hash);
|
||||
let transactions = self
|
||||
.engine()
|
||||
.api
|
||||
.get_inclusion_list::<E>(parent_hash)
|
||||
.await?;
|
||||
Ok(transactions)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(AsRefStr)]
|
||||
|
||||
Reference in New Issue
Block a user