aboutsummaryrefslogtreecommitdiff
path: root/src/rpcnet.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2015-06-19 15:27:37 +0200
committerJonas Schnelli <[email protected]>2015-07-02 20:29:36 +0200
commitf581d3d656cf269ea09ac6f130f4bd70b40a9e55 (patch)
treed598d6e1842273946fbbfb7b91744b9e6ca73c4b /src/rpcnet.cpp
parentMerge pull request #6362 (diff)
downloaddiscoin-f581d3d656cf269ea09ac6f130f4bd70b40a9e55.tar.xz
discoin-f581d3d656cf269ea09ac6f130f4bd70b40a9e55.zip
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 1572b1668..0c3745a7d 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;
}