mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
remove: Remove unused fields
This commit is contained in:
@ -3,7 +3,7 @@ use super::patch::patch_mainnet_after_tx;
|
||||
use crate::{
|
||||
evm::transaction::HlTxEnv,
|
||||
hardforks::HlHardforks,
|
||||
node::types::{ReadPrecompileCalls, ReadPrecompileInput, ReadPrecompileResult},
|
||||
node::types::{ReadPrecompileInput, ReadPrecompileResult},
|
||||
};
|
||||
use alloy_consensus::{Transaction, TxReceipt};
|
||||
use alloy_eips::{eip7685::Requests, Encodable2718};
|
||||
@ -39,6 +39,7 @@ where
|
||||
Spec: EthChainSpec,
|
||||
{
|
||||
/// Reference to the specification object.
|
||||
#[allow(dead_code)]
|
||||
spec: Spec,
|
||||
/// Inner EVM.
|
||||
evm: EVM,
|
||||
@ -46,13 +47,10 @@ where
|
||||
gas_used: u64,
|
||||
/// Receipts of executed transactions.
|
||||
receipts: Vec<R::Receipt>,
|
||||
/// System txs
|
||||
system_txs: Vec<R::Transaction>,
|
||||
/// Read precompile calls
|
||||
read_precompile_calls: ReadPrecompileCalls,
|
||||
/// Receipt builder.
|
||||
receipt_builder: R,
|
||||
/// Context for block execution.
|
||||
#[allow(dead_code)]
|
||||
ctx: HlBlockExecutionCtx<'a>,
|
||||
}
|
||||
|
||||
@ -131,10 +129,7 @@ where
|
||||
evm,
|
||||
gas_used: 0,
|
||||
receipts: vec![],
|
||||
system_txs: vec![],
|
||||
read_precompile_calls: ctx.read_precompile_calls.clone().into(),
|
||||
receipt_builder,
|
||||
// system_contracts,
|
||||
ctx,
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@ use crate::{
|
||||
evm::{
|
||||
api::{ctx::HlContext, HlEvmInner},
|
||||
spec::HlSpecId,
|
||||
transaction::{HlTxEnv, HlTxTr},
|
||||
transaction::HlTxEnv,
|
||||
},
|
||||
node::HlNode,
|
||||
};
|
||||
@ -98,9 +98,6 @@ where
|
||||
if self.inspect {
|
||||
self.inner.set_tx(tx);
|
||||
self.inner.inspect_replay()
|
||||
} else if tx.is_system_transaction() {
|
||||
self.inner.set_tx(tx);
|
||||
self.inner.inspect_replay()
|
||||
} else {
|
||||
self.inner.transact(tx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user