2
I read somewhere that a node is banned for 24 hours.
However I found the Misbehaving() function which makes state->fShouldBan = true;. But I could not find any other function that makes state->fShouldBan = false;. It seems that banning is forever.
If banning is forever, I guess the node also removes the misbehaving peer from its neighbor list, right? But I could not find it.
What do you mean by 'neighbor list'? – Pieter Wuille – 2017-05-30T16:58:25.713
Nodes are not keeping a list of neighbors to get data from? – Önder Gürcan – 2017-05-30T22:59:14.007
Bitcoin Core maintains a database of possible IP addresses of nodes to consider connecting to, called addrman. I was just confused by your usage of the term 'neighbor'. – Pieter Wuille – 2017-05-31T00:18:43.963