Skip to content

Commit

Permalink
increase ban count to 16
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jul 11, 2024
1 parent 1b56deb commit 4b6e144
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions webseed-peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,10 +498,8 @@ func (cn *webseedPeer) ban() {
banCount := cn.peer.banCount
cn.peer.mu.Unlock()

if banCount > 5 && !cn.peer.closed.IsSet() {
preva, prevc := cn.peer.t.numActivePeers(true), cn.peer.closed.IsSet()
if banCount > 16 && !cn.peer.closed.IsSet() {
cn.peer.close(true)
fmt.Println("BCLS", cn.String(), "P", prevc, preva, "A", cn.peer.closed.IsSet(), cn.peer.t.numActivePeers(true))
}
}

Expand Down

0 comments on commit 4b6e144

Please sign in to comment.