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.