From 186d865b229203b92033e6cf1c811f922fb604d9 Mon Sep 17 00:00:00 2001 From: fekt Date: Thu, 6 Oct 2022 09:56:47 -0400 Subject: [PATCH] Unban all peers --- src/mainwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) mode change 100644 => 100755 src/mainwindow.cpp diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp old mode 100644 new mode 100755 index 3611302..e652581 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1448,6 +1448,14 @@ void MainWindow::setupPeersTab() { rpc->refreshPeers(); }); }); + + menu.addAction(tr("Unban all peers"), [=] () { + rpc->clearBanned([=] (QJsonValue response){ + qDebug() << "clearBanned " << response; + ui->statusBar->showMessage(tr("All peers unbanned"), 3 * 1000); + rpc->refreshPeers(); + }); + }); } menu.exec(ui->bannedPeersTable->viewport()->mapToGlobal(pos));