This commit is contained in:
blackjok3r
2018-11-23 04:08:49 +08:00
parent 84c5374aaa
commit 504d318eac

View File

@@ -114,7 +114,7 @@ UniValue getnotarysendmany(const UniValue& params, bool fHelp)
if (fHelp || params.size() != 2)
throw runtime_error("getnotarysendmany <amount to send> <era>");
// era
int32_t era = params[1].get_int() - 1;
era = params[1].get_int() - 1;
if ( era < 0 || era > NUM_STAKED_ERAS )
throw JSONRPCError(RPC_TYPE_ERROR, "Invalid era");
// Amount