You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Always show the same help topic regardless of wallet flags, and explain that something is not always available, rather than runtime-modifying the help output.
{"avoid_reuse", RPCArg::Type::BOOL, /* default */pwallet->IsWalletFlagSet(WALLET_FLAG_AVOID_REUSE) ? "true" : "unavailable", "Avoid spending from dirty addresses; addresses are considered\n"
386
+
{"avoid_reuse", RPCArg::Type::BOOL, /* default */"true", "(only available if avoid_reuse wallet flag is set) Avoid spending from dirty addresses; addresses are considered\n"
387
387
" dirty if they have previously been used in a transaction."},
{"dummy", RPCArg::Type::STR, RPCArg::Optional::OMITTED_NAMED_ARG, "Remains for backward compatibility. Must be excluded or set to \"*\"."},
744
744
{"minconf", RPCArg::Type::NUM, /* default */"0", "Only include transactions confirmed at least this many times."},
745
745
{"include_watchonly", RPCArg::Type::BOOL, /* default */"false", "Also include balance in watch-only addresses (see 'importaddress')"},
746
-
{"avoid_reuse", RPCArg::Type::BOOL, /* default */pwallet->IsWalletFlagSet(WALLET_FLAG_AVOID_REUSE) ? "true" : "unavailable", "Do not include balance in dirty outputs; addresses are considered dirty if they have previously been used in a transaction."},
746
+
{"avoid_reuse", RPCArg::Type::BOOL, /* default */"true", "(only available if avoid_reuse wallet flag is set) Do not include balance in dirty outputs; addresses are considered dirty if they have previously been used in a transaction."},
747
747
},
748
748
RPCResult{
749
749
"amount (numeric) The total amount in " + CURRENCY_UNIT + " received for this wallet.\n"
"\"witnessScript\" : \"script\" (string) witnessScript if the scriptPubKey is P2WSH or P2SH-P2WSH\n"
2934
2931
"\"spendable\" : xxx, (bool) Whether we have the private keys to spend this output\n"
2935
2932
"\"solvable\" : xxx, (bool) Whether we know how to spend this output, ignoring the lack of keys\n"
2936
-
+ (avoid_reuse ?
2937
-
"\"reused\" : xxx, (bool) Whether this output is reused/dirty (sent to an address that was previously spent from)\n" :
2938
-
"") +
2933
+
"\"reused\" : xxx, (bool) (only present if avoid_reuse is set) Whether this output is reused/dirty (sent to an address that was previously spent from)\n"
2939
2934
"\"desc\" : xxx, (string, only when solvable) A descriptor for spending this output\n"
2940
2935
"\"safe\" : xxx (bool) Whether this output is considered safe to spend. Unconfirmed transactions\n"
2941
2936
" from outside keys and unconfirmed replacement transactions are considered unsafe\n"
0 commit comments