Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed Oct 15, 2024
1 parent 09d798e commit e552672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/heightsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (hs *heightSub[H]) Pub(headers ...H) {
}

from, to := headers[0].Height(), headers[ln-1].Height()
if from >= to {
if from > to {
panic(fmt.Sprintf("from must be lower than to, have: %d and %d", from, to))
}

Expand Down

0 comments on commit e552672

Please sign in to comment.