feat: relax more tx manager bounds (#12744)

This commit is contained in:
Matthias Seitz
2024-11-21 16:35:43 +01:00
committed by GitHub
parent c73dadacb2
commit 54ff4c7349
3 changed files with 211 additions and 187 deletions

View File

@ -3,7 +3,9 @@ use alloy_eips::eip2718::Encodable2718;
use parking_lot::RwLock;
use reth_chainspec::ChainSpec;
use reth_optimism_evm::RethL1BlockInfo;
use reth_primitives::{Block, GotExpected, InvalidTransactionError, SealedBlock};
use reth_primitives::{
Block, GotExpected, InvalidTransactionError, SealedBlock, TransactionSigned,
};
use reth_provider::{BlockReaderIdExt, StateProviderFactory};
use reth_revm::L1BlockInfo;
use reth_transaction_pool::{
@ -140,7 +142,8 @@ where
let l1_block_info = self.block_info.l1_block_info.read().clone();
let mut encoded = Vec::with_capacity(valid_tx.transaction().encoded_length());
valid_tx.transaction().clone().into_consensus().into().encode_2718(&mut encoded);
let tx: TransactionSigned = valid_tx.transaction().clone().into_consensus().into();
tx.encode_2718(&mut encoded);
let cost_addition = match l1_block_info.l1_tx_data_fee(
&self.chain_spec(),