From caad492d48aa8a1eaadde1c141a84d9974db41d8 Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Fri, 6 Jan 2023 11:17:15 +0100 Subject: [PATCH] Avoid loading unecessary data --- beacon_node/beacon_chain/src/beacon_chain.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_node/beacon_chain/src/beacon_chain.rs b/beacon_node/beacon_chain/src/beacon_chain.rs index 3ecccd1cc..087f7c22e 100644 --- a/beacon_node/beacon_chain/src/beacon_chain.rs +++ b/beacon_node/beacon_chain/src/beacon_chain.rs @@ -1055,7 +1055,7 @@ impl BeaconChain { match self.store.get_blobs(block_root)? { Some(blobs) => Ok(Some(blobs)), None => { - if let Some(block) = self.get_block(block_root).await? { + if let Ok(Some(block)) = self.get_blinded_block(block_root) { let expected_kzg_commitments = block.message().body().blob_kzg_commitments()?; if expected_kzg_commitments.len() > 0 {