Skip to content

Commit

Permalink
Useless log (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx authored Sep 24, 2024
1 parent 41bbc81 commit b654bb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consensus/parlia/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func backOffTime(snap *Snapshot, header *types.Header, val libcommon.Address, ch
// reverse the key/value of snap.Recents to get recentsMap
counts := snap.countRecents()
for addr, seenTimes := range counts {
log.Debug("backOffTime", "blockNumber", header.Number, "validator", addr, "seenTimes", seenTimes)
log.Trace("backOffTime", "blockNumber", header.Number, "validator", addr, "seenTimes", seenTimes)
}

// The backOffTime does not matter when a validator has signed recently.
Expand All @@ -30,7 +30,7 @@ func backOffTime(snap *Snapshot, header *types.Header, val libcommon.Address, ch

inTurnAddr := snap.inturnValidator()
if snap.signRecentlyByCounts(inTurnAddr, counts) {
log.Debug("in turn validator has recently signed, skip initialBackOffTime",
log.Trace("in turn validator has recently signed, skip initialBackOffTime",
"inTurnAddr", inTurnAddr)
delay = 0
}
Expand Down

0 comments on commit b654bb4

Please sign in to comment.