1
If I call getpeerinfo through RPC on one of my nodes, it gives me a list of info about my peers, including my peer's "banscore" for each of its peers.
I would like to do the reverse. Can I get my peer's ban score for my node?
Or maybe there isn't a way to do this because it would allow peers to misbehave in small ways and keep track of how close they are to getting banned.
In addition, there's nothing that says a connected node even has to keep a banscore. Different implementations of the protocol might do security differently. – morsecoder – 2015-01-15T18:46:48.653
Correct. And there's also a command line switch for Bitcoin Core that increases the score needed to ban, and another switch to change the time a node stays banned. I believe core dev Mike Hearn strongly dislikes the ban score mechanism. I keep forgetting what he proposes as a replacement, but if you're curious, you can search around. (He mentions it in #bitcoin-dev IRC about once a month.) – David A. Harding – 2015-01-15T19:26:24.040