feat: make more block types generic (#12812)

This commit is contained in:
Arsenii Kulikov
2024-11-25 14:50:10 +04:00
committed by GitHub
parent 02824da4fc
commit dcaa06a01a
62 changed files with 534 additions and 333 deletions

View File

@ -98,6 +98,7 @@ where
fn process_block(&mut self, block: &SealedBlockWithSenders) {
let txs: Vec<_> = block
.transactions()
.iter()
.filter(|tx| tx.is_eip4844())
.map(|tx| (tx.clone(), tx.blob_versioned_hashes().unwrap().len()))
.collect();
@ -191,6 +192,7 @@ where
for (_, block) in old.blocks().iter() {
let txs: Vec<BlobTransactionEvent> = block
.transactions()
.iter()
.filter(|tx: &&reth::primitives::TransactionSigned| {
tx.is_eip4844()
})