mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: relax more tx manager bounds (#12744)
This commit is contained in:
@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user