aboutsummaryrefslogtreecommitdiff
path: root/src/rpcnet.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2015-06-19 15:27:37 +0200
committerJonas Schnelli <jonas.schnelli@include7.ch>2015-07-02 20:29:36 +0200
commitf581d3d656cf269ea09ac6f130f4bd70b40a9e55 (patch)
treed598d6e1842273946fbbfb7b91744b9e6ca73c4b /src/rpcnet.cpp
parentd6db1157bcab7ace13f046bdfa107b456c1dfbe3 (diff)
banlist.dat: store banlist on disk
Diffstat (limited to 'src/rpcnet.cpp')
-rw-r--r--src/rpcnet.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp
index 1572b16687..0c3745a7da 100644
--- a/src/rpcnet.cpp
+++ b/src/rpcnet.cpp
@@ -527,6 +527,7 @@ UniValue setban(const UniValue& params, bool fHelp)
throw JSONRPCError(RPC_MISC_ERROR, "Error: Unban failed");
}
+ DumpBanlist(); //store banlist to disk
return NullUniValue;
}
@@ -568,6 +569,7 @@ UniValue clearbanned(const UniValue& params, bool fHelp)
);
CNode::ClearBanned();
+ DumpBanlist(); //store banlist to disk
return NullUniValue;
}