wallet: Add GetDescriptorString to DescriptorScriptPubKeyMan

GetDescriptorString returns a normalized descriptor for a
DescriptorScriptPubKeyMan.
This commit is contained in:
Andrew Chow
2020-05-04 18:49:38 -04:00
parent 9be1437c49
commit bbe4a36152
2 changed files with 15 additions and 0 deletions

View File

@@ -615,6 +615,8 @@ public:
const WalletDescriptor GetWalletDescriptor() const EXCLUSIVE_LOCKS_REQUIRED(cs_desc_man);
const std::vector<CScript> GetScriptPubKeys() const;
bool GetDescriptorString(std::string& out, bool priv) const;
};
#endif // BITCOIN_WALLET_SCRIPTPUBKEYMAN_H