We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ebffb9 commit 360152bCopy full SHA for 360152b
internal/ethapi/api.go
@@ -1188,9 +1188,14 @@ func (api *BlockChainAPI) Config(ctx context.Context) (*configResponse, error) {
1188
for addr, c := range vm.ActivePrecompiledContracts(rules) {
1189
precompiles[c.Name()] = addr
1190
}
1191
+ // Activation time is required. If a fork is activated at genesis the value 0 is used
1192
+ activationTime := t
1193
+ if genesis.Time >= t {
1194
+ activationTime = 0
1195
+ }
1196
forkid := forkid.NewID(c, types.NewBlockWithHeader(genesis), ^uint64(0), t).Hash
1197
return &config{
- ActivationTime: t,
1198
+ ActivationTime: activationTime,
1199
BlobSchedule: c.BlobConfig(c.LatestFork(t)),
1200
ChainId: (*hexutil.Big)(c.ChainID),
1201
ForkId: forkid[:],
0 commit comments