add commit_ref to DatabaseCommit
C-enhancementS-needs-triageS-stale
### Describe the feature
In some contexts we would like to keep the EVM execution result (EvmState = HashMap<Address, Account>) but DatabaseCommit::commit eats the state.
To avoid expensive copies it would be really helpful to have some version DatabaseCommit::commit_ref(&mut self, evm_state: &HashMap<Address, Account>).
### Additional context
_No response_
2 条评论