5 ms·
there wasn't a document when i worked on it, and it almost certainly has evolved in the many years since i looked at it, but here's a starting point: https://gi
by a-dub 4y ago
there wasn't a document when i worked on it, and it almost certainly has evolved in the many years since i looked at it, but here's a starting point: https://github.com/bitcoin/bitcoin/search?q=misbehaving https://github.com/bitcoin/bitcoin/search?q=misbehaving
- Closi 4y agoAh, according to that there is no score or explicit ban. It looks like if you are sending invalid blocks then the server will disconnect you before other peers, but still interesting to see and an implementation detail I didn't know about! Thanks for linking.
- a-dub 4y agohm, guess they updated it. it used to keep a score for each peer in terms of misbehavior and then banlist the source ip address if a peer misbehaved too much. overall the whole system operates under the assumption that peers are untrusted and unauthenticated, so it's more nuisance prevention than anything.