No Branch/Tag Specified
chat
custom_themes
danger
dev
duke
importviewkey
master
no_mining_until_synced
old_duke
onryo
recurring
0.4.0
0.4.1
0.4.2
0.4.3
0.5.0
0.5.1
0.5.10
0.5.11
0.5.3
0.5.4
0.5.5
0.6.0
0.6.1
0.6.10
0.6.11
0.6.2
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.7.0
0.7.1
0.7.2
0.7.3
0.7.4
0.7.5
0.7.6
0.7.7
0.7.9
1.4.2
v0.1.5
v0.1.6
v0.1.7
v0.1.8
v0.1.9
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.2.4
v0.2.5
v0.2.6
v0.2.7
v0.2.8
v0.2.9
v0.3.0
v0.3.1
v0.3.2
v0.5.2
v0.5.6
v0.5.7
v0.5.8
v0.5.9
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.1
v0.8.2
v0.8.3
v0.9.0
v0.9.1
v0.9.2
v1.0.0
v1.1.0
v1.2.0
v1.3.0
v1.3.1
v1.4.0
v1.4.1
v1.4.2
Labels
bounty up to 500 HUSH 2001-5000 bounty
bounty between 2001 and 5000 HUSH 501-2000 bounty
bounty between 501 and 2000 HUSH arm
something doesn't work on arm beginners
for new developers bug
may or may not be a bug build
problems building documentation
not enough information feature
new feature high priority
high priority i2p
related to i2p low priority
low priority medium priority
medium priority question
something is not clear release
release label or issue related to it tor
related to tor translation
translation update windows
related to windows wontfix
this won't be fixed
Apply labels
Clear labels
0-500 bounty
bounty up to 500 HUSH 2001-5000 bounty
bounty between 2001 and 5000 HUSH 501-2000 bounty
bounty between 501 and 2000 HUSH arm
something doesn't work on arm beginners
for new developers bug
may or may not be a bug build
problems building documentation
not enough information feature
new feature high priority
high priority i2p
related to i2p low priority
low priority medium priority
medium priority question
something is not clear release
release label or issue related to it tor
related to tor translation
translation update windows
related to windows wontfix
this won't be fixed
No Label
0-500 bounty
2001-5000 bounty
501-2000 bounty
arm
beginners
bug
build
documentation
feature
high priority
i2p
low priority
medium priority
question
release
tor
translation
windows
wontfix
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
Assign users
Clear assignees
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.
No due date set.
Dependencies
This issue currently doesn't have any dependencies.
Reference in new issue
There is no content yet.
Delete Branch '%!s(MISSING)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
No
Yes
A user should be able to right click on a peer node and choose to ban it. There should be a confirmation modal that pops up to confirm.
@duke See this commit for banning/unbanning. I did not add confirmation but can if you think it's necessary. It will update lists and and show status in bottom left for 3 seconds after banning/unbanning.
a236d83322
@fekt looks good, I don't think we need to confirm. It's pretty simple and fast to ban/unban if a person does the wrong thing. Thanks for working on this!
Just tested this out. Basic functionality does work. When I manually banned a node, I didn't see anything happen initially, so I thought I didn't right click correctly, then did it again. A few seconds later, the node moved to the "Banned Peers" list and then I got an error popup which says "node already banned".
@fekt is there a way we can immediately remove a banned node from the PeersTable when it's banned, even if it doesn't show up in the BannedPeersTable yet? That might be less confusing for users.
Alternately, we could just not do an error popup if a node is already banned.
@duke I was mostly testing on a fresh wallet and it seemed to respond fairly quickly and
refreshPeers
is called. On another wallet with txs sending, it seems like other calls happening in the background block the RPC calls and UI from updating. It happens after those other calls finish. There should also be a status message in the bottom left, but it may only be visible on certain themes.I'll see if I can just remove from the tables when performing actions regardless if RPC got callback.
I tried removing rows and didn't seem to work or at least didn't update UI. Hiding them does. I also added a status message before the RPC call so it should display something like "Banning peer...", which should change to "Peer banned" once the RPC gets callback. On large or busy wallets, it seems like lag with other RPC calls within
refreshPeers
.@fekt that sounds good enough. Closing this