This commit is contained in:
blackjok3r
2019-05-04 01:55:33 +08:00
parent aa32b1f963
commit 9802d350aa
2 changed files with 5 additions and 3 deletions

View File

@@ -1383,7 +1383,7 @@ UniValue getsnapshot(const UniValue& params, bool fHelp)
if (params.size() > 0 && !params[0].isNull()) {
top = atoi(params[0].get_str().c_str());
if (top <= 0)
if (top < 0)
//throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, top must be a positive integer");
top = -1;
}