fix blob validation for empty blobs when using

This commit is contained in:
realbigsean
2022-12-23 12:59:04 -05:00
parent 1dc0759f57
commit adf5f462d5
4 changed files with 11 additions and 7 deletions

View File

@@ -69,7 +69,7 @@ impl<E: EthSpec> EarlyAttesterCache<E> {
},
};
let (block, blobs) = block.deconstruct();
let (block, blobs) = block.deconstruct(Some(beacon_block_root));
let item = CacheItem {
epoch,
committee_lengths,
@@ -77,7 +77,7 @@ impl<E: EthSpec> EarlyAttesterCache<E> {
source,
target,
block,
blobs: blobs?,
blobs: blobs.map_err(|_|Error::MissingBlobs)?,
proto_block,
};