mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
add Gary's comment
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
This commit is contained in:
parent
2ebffb9e12
commit
360152b3da
1 changed files with 6 additions and 1 deletions
|
|
@ -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[:],
|
||||
|
|
|
|||
Loading…
Reference in a new issue