Skip to content

Commit 332192c

Browse files
Fonta1n3jonatack
andcommitted
docs: update the help command for listunspent
Native descriptor wallets always consider outputs to be spendable. This should be made clear as it is an important distinction. Update src/wallet/rpcwallet.cpp Better grammar. Co-authored-by: Jon Atack <[email protected]>
1 parent a3791da commit 332192c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2882,7 +2882,7 @@ static RPCHelpMan listunspent()
28822882
{RPCResult::Type::NUM, "confirmations", "The number of confirmations"},
28832883
{RPCResult::Type::STR_HEX, "redeemScript", "The redeemScript if scriptPubKey is P2SH"},
28842884
{RPCResult::Type::STR, "witnessScript", "witnessScript if the scriptPubKey is P2WSH or P2SH-P2WSH"},
2885-
{RPCResult::Type::BOOL, "spendable", "Whether we have the private keys to spend this output"},
2885+
{RPCResult::Type::BOOL, "spendable", "Whether we have the private keys to spend this output. Native descriptor wallets will always return true regardless of the wallet having private keys for the output."},
28862886
{RPCResult::Type::BOOL, "solvable", "Whether we know how to spend this output, ignoring the lack of keys"},
28872887
{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)"},
28882888
{RPCResult::Type::STR, "desc", "(only when solvable) A descriptor for spending this output"},

0 commit comments

Comments
 (0)