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