Skip to content

Commit

Permalink
stash disabling SetStateRoot.
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-smith committed May 5, 2024
1 parent fd64d9f commit 49d9f03
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,16 +394,10 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
}

if tracer := st.evm.Config.Tracer; tracer != nil {
tracer.CaptureTxStart(st.initialGas)

// If this tracer implements stateRootSetter then call it now
if t, ok := st.evm.Config.Tracer.(stateRootSetter); ok {
t.SetStateRoot(st.state.IntermediateRoot(false))
}

defer func() {
tracer.CaptureTxEnd(st.gasRemaining)
}()
//If this tracer implements stateRootSetter then call it now
//if t, ok := st.evm.Config.Tracer.(stateRootSetter); ok {
// t.SetStateRoot(st.state.IntermediateRoot(false))
//}
}

var (
Expand Down

0 comments on commit 49d9f03

Please sign in to comment.