mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
perf(rpc): use Arc<SealedBlockWithSenders> on cache and rpc (#11635)
This commit is contained in:
@ -275,7 +275,7 @@ where
|
||||
let env = EnvWithHandlerCfg::new_with_cfg_env(
|
||||
initialized_cfg.clone(),
|
||||
initialized_block_env.clone(),
|
||||
evm_config.tx_env(&sequencer_tx),
|
||||
evm_config.tx_env(sequencer_tx.as_signed(), sequencer_tx.signer()),
|
||||
);
|
||||
|
||||
let mut evm = evm_config.evm_with_env(&mut db, env);
|
||||
@ -356,7 +356,7 @@ where
|
||||
let env = EnvWithHandlerCfg::new_with_cfg_env(
|
||||
initialized_cfg.clone(),
|
||||
initialized_block_env.clone(),
|
||||
evm_config.tx_env(&tx),
|
||||
evm_config.tx_env(tx.as_signed(), tx.signer()),
|
||||
);
|
||||
|
||||
// Configure the environment for the block.
|
||||
|
||||
Reference in New Issue
Block a user