Include getbalance in recommendations for z_getbalance and z_gettotalbalance replacements.
Co-authored-by: str4d <thestr4d@gmail.com>
This commit is contained in:
parent
0c59fd9a20
commit
8f2c15cf6f
|
@ -3993,14 +3993,16 @@ UniValue z_getbalance(const UniValue& params, bool fHelp)
|
|||
if (!fEnableZGetBalance)
|
||||
throw runtime_error(
|
||||
"z_getbalance is DEPRECATED and will be removed in a future release\n\n"
|
||||
"Use z_getbalanceforaccount instead, or restart with `-allowdeprecated=z_getbalance`\n"
|
||||
"Use z_getbalanceforaccount, z_getbalanceforviewingkey, or getbalance (for\n"
|
||||
"legacy transparent balance) instead, or restart with `-allowdeprecated=z_getbalance`\n"
|
||||
"if you require backward compatibility.\n"
|
||||
"See https://zcash.github.io/zcash/user/deprecation.html for more information.");
|
||||
|
||||
if (fHelp || params.size() == 0 || params.size() > 3)
|
||||
throw runtime_error(
|
||||
"z_getbalance \"address\" ( minconf inZat )\n"
|
||||
"\nDEPRECATED; please use z_getbalanceforviewingkey or z_getbalanceforaccount instead.`\n"
|
||||
"\nDEPRECATED; please use z_getbalanceforaccount, z_getbalanceforviewingkey,\n"
|
||||
"or getbalance (for legacy transparent balance) instead.\n"
|
||||
"\nReturns the balance of a taddr or zaddr belonging to the node's wallet.\n"
|
||||
"\nCAUTION: If the wallet has only an incoming viewing key for this address, then spends cannot be"
|
||||
"\ndetected, and so the returned balance may be larger than the actual balance."
|
||||
|
@ -4302,14 +4304,14 @@ UniValue z_gettotalbalance(const UniValue& params, bool fHelp)
|
|||
if (!fEnableZGetTotalBalance)
|
||||
throw runtime_error(
|
||||
"z_gettotalbalance is DEPRECATED and will be removed in a future release\n\n"
|
||||
"Use z_getbalanceforaccount instead, or restart with `-allowdeprecated=z_gettotalbalance`\n"
|
||||
"if you require backward compatibility.\n"
|
||||
"Use z_getbalanceforaccount, or getbalance (for legacy transparent balance) instead, or\n"
|
||||
"restart with `-allowdeprecated=z_gettotalbalance if you require backward compatibility.\n"
|
||||
"See https://zcash.github.io/zcash/user/deprecation.html for more information.");
|
||||
|
||||
if (fHelp || params.size() > 2)
|
||||
throw runtime_error(
|
||||
"z_gettotalbalance ( minconf includeWatchonly )\n"
|
||||
"\nDEPRECATED. Please use the z_getbalanceforaccount RPC instead.\n"
|
||||
"\nDEPRECATED. Please use z_getbalanceforaccount or getbalance (for legacy transparent balance) instead.\n"
|
||||
"\nReturn the total value of funds stored in the node's wallet.\n"
|
||||
"\nCAUTION: If the wallet contains any addresses for which it only has incoming viewing keys,"
|
||||
"\nthe returned private balance may be larger than the actual balance, because spends cannot"
|
||||
|
|
Loading…
Reference in New Issue