-
Notifications
You must be signed in to change notification settings - Fork 714
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
[GUI] Fix ban actions in peer list #2852
Conversation
9c59c97
to
2370d90
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ban button indeed does not work nice catch! Can you find a way to solve it without adding the CAddress as public field?
I will take a look, problem beforehand was resolving and looking it up |
046ca98
to
d33efa3
Compare
New way pushed, no longer tracking the address, but that itself is still tracked as addrName as a string, to which we can use for this instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK d33efa3 working as expected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionally ACK, just need to clean up some minor clang-tidy issues.
Fix whitespace
73bd32d
to
a86ab9e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK a86ab9e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK a86ab9e
For quite some time in the PIVX GUI we have the old UX for the peer list, and it has not been functional to ban peers using the context menu.
See below:
Any amount of clicks, it will not ban said peer nor will it update the ban list.
With this PR it is now working as intended again
Clicking ban node for X time, will automatically disconnect the peer and update the GUI/ban list
Changes:
We now track the nodes address in the NodeStats class, and so now we do not need to resolve the IP but rather pull it from the stats we have access to after syncing the information from the node.