Merge pull request #107 from blackjok3rtt/jl777

add daily snapshot address to getsnapshot (top = -1)
This commit is contained in:
blackjok3rtt
2019-05-03 22:39:24 +08:00
committed by GitHub
2 changed files with 17 additions and 5 deletions

View File

@@ -1384,7 +1384,8 @@ 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)
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, top must be a positive integer");
//throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, top must be a positive integer");
top = -1;
}
if ( fHelp || params.size() > 1)