Skip to content

Commit

Permalink
chore(dot/epoch) better branching
Browse files Browse the repository at this point in the history
Co-authored-by: JimboJ <40345116+jimjbrettj@users.noreply.github.com>
  • Loading branch information
ramiroJCB and jimjbrettj authored Sep 18, 2024
1 parent 1e7ee84 commit 86de584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dot/state/epoch.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (s *EpochState) GetEpochForBlock(header *types.Header) (uint64, error) {
// actually the epoch number for block number #1 is epoch 0,
// epochs start from 0 and are incremented (almost, given that epochs might be skipped)
// sequentially 0...1...2, so the block number #1 belongs to epoch 0
if header.Number == 0 || header.Number == 1 {
if header.Number <= 1 {
return 0, nil
}

Expand Down

0 comments on commit 86de584

Please sign in to comment.