mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
core/forkid: add comment about skipping non-zero fork times
This commit is contained in:
parent
9ed60b84b1
commit
e27464ada2
1 changed files with 1 additions and 0 deletions
|
|
@ -292,6 +292,7 @@ func gatherForks(config *params.ChainConfig, genesis uint64) ([]uint64, []uint64
|
|||
if len(forksByTime) > 0 && forksByTime[0] == 0 {
|
||||
forksByTime = forksByTime[1:]
|
||||
}
|
||||
// Skip any forks by time that are non-zero, but before genesis.
|
||||
if len(forksByTime) > 0 && forksByTime[0] <= genesis {
|
||||
forksByTime = forksByTime[1:]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue