Skip to content

Commit

Permalink
[misc] Leftover changes from e249efe
Browse files Browse the repository at this point in the history
  • Loading branch information
giaki3003 committed Nov 20, 2020
1 parent eddb52a commit 6adaeaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/rpc/client.cpp
Expand Up @@ -158,6 +158,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "setgenerate", 1, "genproclimit" },
// Dash
{ "spork", 1, "value" },
{ "infinitynodeburnfund_external", 0, "inputs" },
{ "infinitynodeupdatemeta_external", 0, "inputs" },
//
{ "getmempoolancestors", 1, "verbose" },
Expand Down
9 changes: 5 additions & 4 deletions src/rpc/infinitynode.cpp
Expand Up @@ -665,8 +665,8 @@ static UniValue infinitynodeburnfund_external(const JSONRPCRequest& request)

if (request.fHelp || request.params.size() != 4)
throw std::runtime_error(
"infinitynodeburnfund NodeOwnerAddress amount SINBackupAddress"
"\nSend an amount to BurnAddress.\n"
"infinitynodeburnfund_external inputs NodeOwnerAddress amount SINBackupAddress"
"\nPrepare a burn transaction with the given inputs.\n"
"\nArguments:\n"
"1. \"inputs\" (array, required) A json array of json objects\n"
" [\n"
Expand All @@ -684,7 +684,7 @@ static UniValue infinitynodeburnfund_external(const JSONRPCRequest& request)
"\"BURNtxid\" (string) The burn transaction id. Needed to run infinity node\n"
"\"CollateralAddress\" (string) Collateral. Please send 10000" + CURRENCY_UNIT + " to this address.\n"
"\nExamples:\n"
+ HelpExampleCli("infinitynodeburnfund", "NodeOwnerAddress 1000000 SINBackupAddress")
+ HelpExampleCli("infinitynodeburnfund_external", "\"[{\\\"txid\\\":\\\"myid\\\",\\\"vout\\\":0}]\" NodeOwnerAddress 1000000 SINBackupAddress")
);

std::string strError;
Expand Down Expand Up @@ -1148,8 +1148,9 @@ static const CRPCCommand commands[] =
{ // category name actor (function) argNames
// --------------------- ------------------------ ----------------------- ----------
{ "SIN", "infinitynodeburnfund", &infinitynodeburnfund, {"amount"} },
{ "SIN", "infinitynodeburnfund_external", &infinitynodeburnfund_external, {"inputs array", "owner_address","amount","backup_address"} },
{ "SIN", "infinitynodeupdatemeta", &infinitynodeupdatemeta, {"owner_address","node_address","IP"} },
{ "SIN", "infinitynodeupdatemeta_external", &infinitynodeupdatemeta_external, {"owner_address","node_address","IP", "inputs array"} },
{ "SIN", "infinitynodeupdatemeta_external", &infinitynodeupdatemeta_external, {"inputs array", "owner_address","node_address","IP"} },
{ "SIN", "infinitynode", &infinitynode, {"command"} },
{ "SIN", "infinitynodevote", &infinitynodevote, {"owner_address","proposalid","opinion"} }
};
Expand Down

0 comments on commit 6adaeaa

Please sign in to comment.