Skip to content

Commit

Permalink
core/forkid: add comment about skipping non-zero fork times
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient committed Aug 31, 2023
1 parent 9ed60b8 commit e27464a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/forkid/forkid.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
}
Expand Down

0 comments on commit e27464a

Please sign in to comment.