Skip to content
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

Merged
merged 1 commit into from
May 3, 2023

Conversation

Liquid369
Copy link
Member

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:
Screenshot 2023-04-17 at 1 40 46 PM

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

Screenshot 2023-04-17 at 1 42 12 PM

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.

Copy link

@panleone panleone left a 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?

@Liquid369
Copy link
Member Author

I will take a look, problem beforehand was resolving and looking it up
I will play with it some tonight and tomorrow!

@Liquid369
Copy link
Member Author

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.

panleone
panleone previously approved these changes Apr 20, 2023
Copy link

@panleone panleone left a 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

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a 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.

src/qt/rpcconsole.cpp Outdated Show resolved Hide resolved
src/qt/rpcconsole.cpp Outdated Show resolved Hide resolved
src/qt/rpcconsole.cpp Outdated Show resolved Hide resolved
Fix whitespace
Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK a86ab9e

Copy link

@panleone panleone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK a86ab9e

@Fuzzbawls Fuzzbawls merged commit aca81a1 into PIVX-Project:master May 3, 2023
@Fuzzbawls Fuzzbawls modified the milestones: 6.0.0, 5.6.0 Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants