good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 497448bf authored by Martin Holst Swende's avatar Martin Holst Swende
Browse files

core: fix condition on header verification

parent 0fda25e4
No related branches found
No related tags found
No related merge requests found
......@@ -323,7 +323,7 @@ func (hc *HeaderChain) ValidateHeaderChain(chain []*types.Header, checkFreq int)
seals := make([]bool, len(chain))
if checkFreq != 0 {
// In case of checkFreq == 0 all seals are left false.
for i := 0; i < len(seals)/checkFreq; i++ {
for i := 0; i <= len(seals)/checkFreq; i++ {
index := i*checkFreq + hc.rand.Intn(checkFreq)
if index >= len(seals) {
index = len(seals) - 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment