chore: rm clone for witness (#17684)

This commit is contained in:
Matthias Seitz
2025-07-31 01:20:27 +02:00
committed by GitHub
parent 6a587a23e9
commit dd3479ff62

View File

@@ -635,12 +635,12 @@ where
.eth_api()
.spawn_with_state_at_block(block.parent_hash().into(), move |state_provider| {
let db = StateProviderDatabase::new(&state_provider);
let block_executor = this.eth_api().evm_config().batch_executor(db);
let block_executor = this.eth_api().evm_config().executor(db);
let mut witness_record = ExecutionWitnessRecord::default();
let _ = block_executor
.execute_with_state_closure(&(*block).clone(), |statedb: &State<_>| {
.execute_with_state_closure(&block, |statedb: &State<_>| {
witness_record.record_executed_state(statedb);
})
.map_err(|err| EthApiError::Internal(err.into()))?;