-
Notifications
You must be signed in to change notification settings - Fork 990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Peer ban doesn't work as expected #2241
Comments
It proves that this is caused by a wrong usage. Sorry for noise. |
Even after switching to Finally I find the root cause, it looks like a deep buried bug here which was committed on 2018-03-28 since the
For each peer connection request, we will call this
The problem is the Will give a PR to fix this. |
Confirmed the fix seems doesn't work! will investigate.
And repeating the ban and connect. |
The root cause is clear now: There're two different
When we ban a peer, we use this
will write a PR to fix this. |
A banned peer continue appearing on my peers list, check log and find this:
That means when I ban a peer, it works. But after 30 seconds, if this banned peer request connect again, it will connect to my node again!
It will enter an infinite loop here: banned, connected, banned, connected, ...
The text was updated successfully, but these errors were encountered: