mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
banlist.dat: store banlist on disk
This commit is contained in:
parent
d6db1157bc
commit
f581d3d656
5 changed files with 236 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue