What was the thought behind a banscore threshold of 100? Why is that default, why not lower or higher?

In what legitimate circumstances would a node operator change the banscore for their node?

1 Answer 1


The concept of banscore is mostly historical at this point in time. The original concept was that minor misconfiguration or implementation wouldn't cause the whole network to disconnect itself instantly from one another. Small violations would just be counted towards their ban score, with large violations (like sending invalid block data) resulting in immediate maximum score.

Today most events which will cause an increase in ban score are going to reach 100 either instantly or very quickly, so it serves almost no purpose. You, as a node operator, get no value out of peers which are misbehaving, so there's no reason to change this value upwards. If the peer to peer logic was to be implemented today any protocol violation would just result in disconnection.

  • I had a look through code and I see now that many items ban immediately to 100 as you say with a few exceptions. Thanks for your answer.
    – Scalextrix
    Commented Mar 16, 2020 at 18:46
  • Originally lots of things were 1,10 etc- but any failure will eventually lead to banning, so there’s little point delaying.
    – Claris
    Commented Mar 16, 2020 at 19:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.