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 authored and buddh0 committed Nov 6, 2024
1 parent f707982 commit 30981ee
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 @@ -2127,6 +2127,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 30981ee

Please sign in to comment.