feat: ChainStorageReader (#12836)

This commit is contained in:
Arsenii Kulikov
2024-11-25 17:29:25 +04:00
committed by GitHub
parent 04dd005af9
commit 863c5233fc
13 changed files with 227 additions and 157 deletions

View File

@ -2,6 +2,7 @@
use alloy_primitives::{BlockNumber, B256};
use reth_execution_types::ChainBlocks;
use reth_primitives_traits::BlockBody as _;
use std::collections::BTreeMap;
/// The type that is used to track canonical blob transactions.
@ -42,6 +43,7 @@ impl BlobStoreCanonTracker {
let iter = block
.body
.transactions()
.iter()
.filter(|tx| tx.transaction.is_eip4844())
.map(|tx| tx.hash());
(*num, iter)