Skip to content

Commit

Permalink
fix: update the help command for listunspent
Browse files Browse the repository at this point in the history
Native descriptor wallets always consider outputs to be spendable. This should be made clear as it is an important distinction.

fix: remove . to maintain consistent grammer

fix: remove . to maintain consistent grammer

fix: remove . to maintain consistent grammer
  • Loading branch information
Fonta1n3 committed Jul 22, 2021
1 parent a3791da commit 7ac39cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2882,7 +2882,7 @@ static RPCHelpMan listunspent()
{RPCResult::Type::NUM, "confirmations", "The number of confirmations"},
{RPCResult::Type::STR_HEX, "redeemScript", "The redeemScript if scriptPubKey is P2SH"},
{RPCResult::Type::STR, "witnessScript", "witnessScript if the scriptPubKey is P2WSH or P2SH-P2WSH"},
{RPCResult::Type::BOOL, "spendable", "Whether we have the private keys to spend this output"},
{RPCResult::Type::BOOL, "spendable", "Whether we have the private keys to spend this output. Native descriptor wallets will always return true irregardless of whether the wallet holds private keys for the output"},
{RPCResult::Type::BOOL, "solvable", "Whether we know how to spend this output, ignoring the lack of keys"},
{RPCResult::Type::BOOL, "reused", "(only present if avoid_reuse is set) Whether this output is reused/dirty (sent to an address that was previously spent from)"},
{RPCResult::Type::STR, "desc", "(only when solvable) A descriptor for spending this output"},
Expand Down

0 comments on commit 7ac39cb

Please sign in to comment.