Skip to content

Commit

Permalink
consensus/parlia: add debug log for backOffTime
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanBSC committed Aug 20, 2024
1 parent 13c253f commit 13de488
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions consensus/parlia/parlia.go
Original file line number Diff line number Diff line change
Expand Up @@ -2122,6 +2122,10 @@ func (p *Parlia) backOffTime(snap *Snapshot, header *types.Header, val common.Ad
backOffSteps[i], backOffSteps[j] = backOffSteps[j], backOffSteps[i]
})

for i := uint64(0); i < uint64(n); i++ {
log.Debug("backOffTime", "Number", header.Number, "val", validators[i], "delay", delay+backOffSteps[i]*wiggleTime)
}

delay += backOffSteps[idx] * wiggleTime
return delay
}
Expand Down

0 comments on commit 13de488

Please sign in to comment.