mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: make more block types generic (#12812)
This commit is contained in:
@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user