Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Change account touch tracer to access list tracer for env changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wazzymandias committed Jul 31, 2023
1 parent e1207eb commit 07010cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion miner/env_changes.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ func (c *envChanges) commitTx(tx *types.Transaction, chData chainData) (*types.R
}

cfg := *chData.chain.GetVMConfig()
touchTracer := logger.NewAccountTouchTracer()
// we set precompile to nil, but they are set in the validation code
// there will be no difference in the result if precompile is not it the blocklist
touchTracer := logger.NewAccessListTracer(nil, common.Address{}, common.Address{}, nil)
cfg.Tracer = touchTracer
cfg.Debug = true

Expand Down

0 comments on commit 07010cc

Please sign in to comment.