mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-10 13:01:22 +00:00
Avoid loading unecessary data
This commit is contained in:
parent
88dde8b3bb
commit
caad492d48
@ -1055,7 +1055,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
|||||||
match self.store.get_blobs(block_root)? {
|
match self.store.get_blobs(block_root)? {
|
||||||
Some(blobs) => Ok(Some(blobs)),
|
Some(blobs) => Ok(Some(blobs)),
|
||||||
None => {
|
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()?;
|
let expected_kzg_commitments = block.message().body().blob_kzg_commitments()?;
|
||||||
|
|
||||||
if expected_kzg_commitments.len() > 0 {
|
if expected_kzg_commitments.len() > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user