We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1038ad3 commit 78a0979Copy full SHA for 78a0979
src/wallet/rpc/backup.cpp
@@ -2039,8 +2039,8 @@ RPCHelpMan listdescriptors()
2039
spk.pushKV("internal", wallet->GetScriptPubKeyMan(true) == desc_spk_man);
2040
}
2041
if (type != std::nullopt) {
2042
- std::string match = strprintf("/9'/%s'/0'", Params().ExtCoinType());
2043
- bool is_cj = descriptor.size() > 5 && descriptor.find(match) != std::string::npos;
+ std::string match = strprintf("/%d'/%s'/0'", BIP32_PURPOSE_FEATURE, Params().ExtCoinType());
+ bool is_cj = descriptor.find(match) != std::string::npos;
2044
if (is_cj) {
2045
spk.pushKV("internal", false);
2046
spk.pushKV("coinjoin", is_cj);
0 commit comments