try
This commit is contained in:
@@ -42,7 +42,7 @@ bool CheckTxAuthority(const CTransaction &tx, CrosschainAuthority auth)
|
||||
if (!seen[i]) {
|
||||
if (memcmp(pk, auth.notaries[i], 33) == 0) {
|
||||
seen[i] = 1;
|
||||
printf("seennotary..%i\n",i);
|
||||
printf("seennotary.%i\n",i);
|
||||
goto found;
|
||||
} else {
|
||||
printf("notary.%i is not valid!\n",i);
|
||||
|
||||
@@ -114,7 +114,7 @@ UniValue getnotarysendmany(const UniValue& params, bool fHelp)
|
||||
if (fHelp || params.size() != 2)
|
||||
throw runtime_error("getnotarysendmany\n<era> <amount to send>");
|
||||
// era
|
||||
int32_t era = params[0].get_int() - 1;
|
||||
int32_t era = (int)params[0] - 1;
|
||||
if ( era < 0 || era > NUM_STAKED_ERAS )
|
||||
throw JSONRPCError(RPC_TYPE_ERROR, "Invalid era");
|
||||
// Amount
|
||||
|
||||
Reference in New Issue
Block a user