Misbehaving peers never increase in ban score. #2997

issue ghost opened this issue on September 15, 2013
  1. ghost commented at 10:23 AM on September 15, 2013: none

    Since at least the 8.x series, my "misbehaving" peers are never actively punished, even though there's log messages suggesting that they are.

    ERROR: ProcessBlock() : already have block 257798 0000000000000023f4514ddd81a0a915bc16d59eaf9fe9a6e0344b1aa01319a3
    Misbehaving: hostname.tld:8333 (0 -> 0)
    

    The ban score always remains at 0, and is never increased for any peer, despite the many of messages saying that peers are misbehaving for a variety of reasons. Is this intended?

    I could have sworn that previously, the score increased up until a threshold that would kick their connection, which never happens now. Nothing is strange about my configuration, it is a non-listening node in onion land running either the latest tagged build or the current master.

  2. sipa commented at 1:50 PM on September 15, 2013: member

    Some misbehaviour simply has score 0, for various reasons. I think the log message should just be made different in that case.

  3. ghost commented at 2:34 PM on September 15, 2013: none

    Agreed. These all get a little spammy after a while, and it looks out of place to have no score incremented for an offence.

    ERROR: CTxMemPool::accept() : ConnectInputs failed d0b4b3abdd421a0bd288ae735d3389c4bb039249b1e958773aa2fb7f76fc793e
    Misbehaving: ****:8333 (0 -> 0)
    
    ERROR: ProcessBlock() : already have block 257797 000000000000000e0ba31f8dda53a8260d9fa3e2afe180636f6914d43335c0ac
    Misbehaving: ****:8333 (0 -> 0)
    
    ERROR: CTxMemPool::accept() : inputs already spent
    Misbehaving: ****:8333 (0 -> 0)
    
  4. Diapolo commented at 8:48 AM on October 4, 2013: none

    @63 Should be fixed by #3047!

  5. ghost commented at 10:14 AM on October 4, 2013: none

    Did not go unnoticed @Diapolo, thanks.

  6. unknown closed this on Oct 4, 2013

  7. Bushstar referenced this in commit b9a738528c on Apr 8, 2020
  8. Bushstar referenced this in commit 2dc1b06ec7 on Apr 8, 2020
  9. MarcoFalke locked this on Sep 8, 2021
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me