rpc, doc: update listdescriptors RCP help

This RPC lists all the descriptors present in the wallet, not only
the ones that were imported, but also the ones generated when a
new wallet is created.

It can be verified by creating a new wallet and calling the
`listdescriptors` RPC, which will contain 8 ranged descriptors that
are created for every new wallet.

Github-Pull: #32708
Rebased-From: b44514b876333a94ae242da8b1e4cee439c2d37e
This commit is contained in:
rkrux 2025-06-09 15:11:42 +05:30 committed by fanquake
parent c899334e36
commit 78688c8413
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

View File

@ -1781,7 +1781,7 @@ RPCHelpMan listdescriptors()
{
return RPCHelpMan{
"listdescriptors",
"\nList descriptors imported into a descriptor-enabled wallet.\n",
"\nList all descriptors present in a descriptor-enabled wallet.\n",
{
{"private", RPCArg::Type::BOOL, RPCArg::Default{false}, "Show private descriptors."}
},