We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fda25e commit 497448bCopy full SHA for 497448b
core/headerchain.go
@@ -323,7 +323,7 @@ func (hc *HeaderChain) ValidateHeaderChain(chain []*types.Header, checkFreq int)
323
seals := make([]bool, len(chain))
324
if checkFreq != 0 {
325
// In case of checkFreq == 0 all seals are left false.
326
- for i := 0; i < len(seals)/checkFreq; i++ {
+ for i := 0; i <= len(seals)/checkFreq; i++ {
327
index := i*checkFreq + hc.rand.Intn(checkFreq)
328
if index >= len(seals) {
329
index = len(seals) - 1
0 commit comments