From 360152b3da12b6f00c4c9a0b956db269ad0a367e Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Mon, 1 Sep 2025 16:20:49 +0200 Subject: [PATCH] add Gary's comment Co-authored-by: rjl493456442 --- internal/ethapi/api.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index eb662f9a71..1047ccf071 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1188,9 +1188,14 @@ func (api *BlockChainAPI) Config(ctx context.Context) (*configResponse, error) { for addr, c := range vm.ActivePrecompiledContracts(rules) { precompiles[c.Name()] = addr } + // Activation time is required. If a fork is activated at genesis the value 0 is used + activationTime := t + if genesis.Time >= t { + activationTime = 0 + } forkid := forkid.NewID(c, types.NewBlockWithHeader(genesis), ^uint64(0), t).Hash return &config{ - ActivationTime: t, + ActivationTime: activationTime, BlobSchedule: c.BlobConfig(c.LatestFork(t)), ChainId: (*hexutil.Big)(c.ChainID), ForkId: forkid[:],