File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -3848,13 +3848,18 @@ RPCHelpMan getaddressinfo()
3848
3848
isminetype mine = pwallet->IsMine (dest);
3849
3849
ret.pushKV (" ismine" , bool (mine & ISMINE_SPENDABLE));
3850
3850
3851
- bool solvable = provider && IsSolvable (*provider, scriptPubKey);
3852
- ret.pushKV (" solvable" , solvable);
3853
-
3854
- if (solvable) {
3855
- ret.pushKV (" desc" , InferDescriptor (scriptPubKey, *provider)->ToString ());
3851
+ if (provider) {
3852
+ auto inferred = InferDescriptor (scriptPubKey, *provider);
3853
+ bool solvable = inferred->IsSolvable () || IsSolvable (*provider, scriptPubKey);
3854
+ ret.pushKV (" solvable" , solvable);
3855
+ if (solvable) {
3856
+ ret.pushKV (" desc" , inferred->ToString ());
3857
+ }
3858
+ } else {
3859
+ ret.pushKV (" solvable" , false );
3856
3860
}
3857
3861
3862
+
3858
3863
DescriptorScriptPubKeyMan* desc_spk_man = dynamic_cast <DescriptorScriptPubKeyMan*>(pwallet->GetScriptPubKeyMan (scriptPubKey));
3859
3864
if (desc_spk_man) {
3860
3865
std::string desc_str;
You can’t perform that action at this time.
0 commit comments