params: core: enable shanghai based on timestamps

This commit is contained in:
Marius van der Wijden
2023-01-03 12:56:25 +02:00
committed by Péter Szilágyi
parent dad92500e7
commit efc9409ca9
7 changed files with 23 additions and 21 deletions
+1 -1
View File
@@ -1440,7 +1440,7 @@ func AccessList(ctx context.Context, b Backend, blockNrOrHash rpc.BlockNumberOrH
}
isPostMerge := header.Difficulty.Cmp(common.Big0) == 0
// Retrieve the precompiles since they don't need to be added to the access list
precompiles := vm.ActivePrecompiles(b.ChainConfig().Rules(header.Number, isPostMerge))
precompiles := vm.ActivePrecompiles(b.ChainConfig().Rules(header.Number, isPostMerge, new(big.Int).SetUint64(header.Time)))
// Create an initial tracer
prevTracer := logger.NewAccessListTracer(nil, args.from(), to, precompiles)