mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
perf: remove unnecessary state clone (#4763)
This commit is contained in:
@ -210,7 +210,7 @@ impl AppendableChain {
|
||||
// check state root if the block extends the canonical chain.
|
||||
if block_kind.extends_canonical_head() {
|
||||
// check state root
|
||||
let state_root = provider.state_root(bundle_state.clone())?;
|
||||
let state_root = provider.state_root(&bundle_state)?;
|
||||
if block.state_root != state_root {
|
||||
return Err(ConsensusError::BodyStateRootDiff {
|
||||
got: state_root,
|
||||
|
||||
Reference in New Issue
Block a user