Skip to content

Commit e27464a

Browse files
committed
core/forkid: add comment about skipping non-zero fork times
1 parent 9ed60b8 commit e27464a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/forkid/forkid.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ func gatherForks(config *params.ChainConfig, genesis uint64) ([]uint64, []uint64
292292
if len(forksByTime) > 0 && forksByTime[0] == 0 {
293293
forksByTime = forksByTime[1:]
294294
}
295+
// Skip any forks by time that are non-zero, but before genesis.
295296
if len(forksByTime) > 0 && forksByTime[0] <= genesis {
296297
forksByTime = forksByTime[1:]
297298
}

0 commit comments

Comments
 (0)