Skip to content

Commit

Permalink
Fixed ban bug that doesn't print numTxns
Browse files Browse the repository at this point in the history
(cherry picked from commit 11c8d11)
  • Loading branch information
David Vennik authored and jcvernaleo committed Oct 10, 2022
1 parent 6b5418d commit e563459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,7 @@ func (sp *serverPeer) OnNotFound(p *peer.Peer, msg *wire.MsgNotFound) {
}
if numTxns > 0 {
txStr := pickNoun(uint64(numTxns), "transaction", "transactions")
reason := fmt.Sprintf("%d %v not found", numBlocks, txStr)
reason := fmt.Sprintf("%d %v not found", numTxns, txStr)
if sp.addBanScore(0, 10*numTxns, reason) {
return
}
Expand Down

0 comments on commit e563459

Please sign in to comment.