Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lispc committed Jun 20, 2024
1 parent 31aa21f commit cced17b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions eth/tracers/api_blocktrace.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,10 @@ func (api *API) createTraceEnvAndGetBlockTrace(ctx context.Context, config *Trac
chainConfig := new(params.ChainConfig)
*chainConfig = *api.backend.ChainConfig()
if config != nil && config.Overrides != nil {
// the merge.Merge seems not work well
// mergo.Merge(chainConfig, config.Overrides, mergo.WithOverride)
if curie := config.Overrides.CurieBlock; curie != nil {
chainConfig.CurieBlock = curie
misc.ApplyCurieHardFork(statedb)
statedb.Commit(true)
statedb.IntermediateRoot(true)
}
log.Info("chainConfig overrided by traceConfig.Overrides", "chainConfig", chainConfig, "config.Overrides", config.Overrides)
}
Expand Down

0 comments on commit cced17b

Please sign in to comment.