perf(rpc): use Arc<SealedBlockWithSenders> on cache and rpc (#11635)

This commit is contained in:
joshieDo
2024-10-14 21:44:28 +09:00
committed by GitHub
parent 9c8360e532
commit c05a900542
23 changed files with 169 additions and 236 deletions

View File

@ -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.