wallet/rpc: z_consolidate is not safe-mode; say which units it uses
z_consolidate creates and broadcasts transactions, so like z_sendmany and z_shieldcoinbase it must not run in safe mode. Its fee argument is in DRGX, like z_sendmany's, while -consolidationtxfee and every amount in z_consolidationstatus are in puposhis; the help and the doc now say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3448,6 +3448,8 @@ UniValue z_consolidate(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
||||
" with -zsweep on, only the sweep address (also the default then)\n"
|
||||
"\nResult:\n"
|
||||
"\"operationid\" (string) An operationid to pass to z_getoperationstatus to get the result.\n"
|
||||
"The fee here is in " + CURRENCY_UNIT + ", like z_sendmany's; -consolidationtxfee and the amounts in\n"
|
||||
"z_consolidationstatus are in puposhis (1 " + CURRENCY_UNIT + " = 100000000).\n"
|
||||
"\nExamples:\n"
|
||||
+ HelpExampleCli("z_consolidate", "")
|
||||
+ HelpExampleCli("z_consolidate", "null 50 20 '[\"zs1...\"]'")
|
||||
@@ -6698,7 +6700,7 @@ static const CRPCCommand commands[] =
|
||||
{ "wallet", "z_sweepstatus", &z_sweepstatus, true },
|
||||
{ "wallet", "z_autoshieldstatus", &z_autoshieldstatus, true },
|
||||
{ "wallet", "z_consolidationstatus", &z_consolidationstatus, true },
|
||||
{ "wallet", "z_consolidate", &z_consolidate, true },
|
||||
{ "wallet", "z_consolidate", &z_consolidate, false },
|
||||
{ "wallet", "z_sendmany", &z_sendmany, false },
|
||||
{ "wallet", "z_shieldcoinbase", &z_shieldcoinbase, false },
|
||||
{ "wallet", "z_getoperationstatus", &z_getoperationstatus, true },
|
||||
|
||||
Reference in New Issue
Block a user