Use blinded blocks for light client proofs (#6201)

* Use blinded blocks for light client proofs
This commit is contained in:
Michael Sproul
2024-07-30 23:25:55 +10:00
committed by GitHub
parent 96b00ef66c
commit c7ded10870
8 changed files with 72 additions and 107 deletions

View File

@@ -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);
};