5

What increases a node's banscore? What factors contribute to the banscore? Does a node sending bad transactions increase its banscore? Does its using unnecessarily too much bandwidth also increase its banscore?

Geremia
  • 4,626
  • 5
  • 38
  • 75

1 Answers1

12

There are many facts that can increase a node's banscore. A node's banscore is updated in the Misbehaving function from main.cpp. Some of the reasons that trigger such update are:

Regarding transactions, it seems that they also may increase the banscore:

// Punish peer that gave us an invalid orphan tx

cpsola
  • 1,538
  • 10
  • 27
  • That's good that they're punished for sending invalid transactions, that way there can't be any lazy nodes out there. – Geremia Jun 27 '16 at 21:49
  • does broadcasting double spend transaction also increases the banscore ? thanks –  Sep 04 '17 at 07:58
  • No, it doesn't (see https://bitcoin.stackexchange.com/a/28159/3041) – cpsola Sep 05 '17 at 10:57
  • 1
    Could continuously re-broadcasting a transaction that is already in all nodes' mempools increase banscore? – deezy Mar 03 '21 at 15:38
  • @deezy iiuc all nodes are continually re-broadcasting the transactions in their mempools, in order to make sure that their mempools line up with the rest of the network – tjr226 May 03 '21 at 16:11