diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2015-09-20 10:42:35 +0200 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2015-09-20 10:42:35 +0200 |
commit | 7aac6db6eb6b54da62d5eaafe7f14585ea1ea34d (patch) | |
tree | 04331cd336586435c7bc0c58369b9be7e7b856d5 /src/qt | |
parent | 7f90ea78cb68c60408df85d5c653257dbc9160fe (diff) |
[QT] dump banlist to disk in case of ban/unban over QT
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/rpcconsole.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index b3c28eab82..9603a26c6e 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -809,6 +809,7 @@ void RPCConsole::banSelectedNode(int bantime) CNode::Ban(CNetAddr(addr), BanReasonManuallyAdded, bantime); bannedNode->fDisconnect = true; + DumpBanlist(); clearSelectedNode(); clientModel->getBanTableModel()->refresh(); @@ -827,6 +828,7 @@ void RPCConsole::unbanSelectedNode() if (possibleSubnet.IsValid()) { CNode::Unban(possibleSubnet); + DumpBanlist(); clientModel->getBanTableModel()->refresh(); } } |