What increases a node's banscore?

5

1

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

Posted 2016-05-20T17:30:37.117

Reputation: 3 665

Answers

11

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

Posted 2016-05-20T17:30:37.117

Reputation: 1 453

That's good that they're punished for sending invalid transactions, that way there can't be any lazy nodes out there.Geremia 2016-06-27T21:49:26.463

does broadcasting double spend transaction also increases the banscore ? thanksAMB 2017-09-04T07:58:15.220

No, it doesn't (see https://bitcoin.stackexchange.com/a/28159/3041)

cpsola 2017-09-05T10:57:28.297