banlist.dat: store banlist on disk

This commit is contained in:
Jonas Schnelli
2015-06-19 15:27:37 +02:00
parent d6db1157bc
commit f581d3d656
5 changed files with 236 additions and 3 deletions

View File

@@ -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;
}