mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-28 02:03:32 +00:00
Use blinded blocks for light client proofs (#6201)
* Use blinded blocks for light client proofs
This commit is contained in:
@@ -6766,12 +6766,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
&self,
|
||||
block_root: &Hash256,
|
||||
) -> Result<Option<(LightClientBootstrap<T::EthSpec>, ForkName)>, Error> {
|
||||
let handle = self
|
||||
.task_executor
|
||||
.handle()
|
||||
.ok_or(BeaconChainError::RuntimeShutdown)?;
|
||||
|
||||
let Some(block) = handle.block_on(async { self.get_block(block_root).await })? else {
|
||||
let Some(block) = self.get_blinded_block(block_root)? else {
|
||||
return Ok(None);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user