Skip to content

Commit

Permalink
Disable lazy evaluation in zero tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
cffls committed Sep 4, 2024
1 parent bad0618 commit 8cba58d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/vm/evmtypes/evmtypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,5 @@ type IntraBlockState interface {
AddLog(*types.Log)

GetLogs(hash common.Hash) []*types.Log
SetDisableBalanceInc(disable bool)
}
2 changes: 2 additions & 0 deletions eth/tracers/native/zero.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ func (t *zeroTracer) CaptureStart(env *vm.EVM, from libcommon.Address, to libcom
t.to = &to
t.env = env

t.env.IntraBlockState().SetDisableBalanceInc(true)

t.addAccountToTrace(from)
t.addAccountToTrace(to)
t.addAccountToTrace(env.Context.Coinbase)
Expand Down

0 comments on commit 8cba58d

Please sign in to comment.