diff options
author | Andrew Chow <achow101-github@achow101.com> | 2021-03-01 14:48:59 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2021-06-24 14:08:45 -0400 |
commit | 3280704886b60644d103a5eb310691c003a39328 (patch) | |
tree | 66a03f5b71657f1823842c9d9404b4780289e0a6 /src/wallet | |
parent | 7a26ff10c2f2e139fbc63e2f37fb33ea4efae088 (diff) | |
download | bitcoin-3280704886b60644d103a5eb310691c003a39328.tar.xz |
Pass in DescriptorCache to ToNormalizedString
Use the descriptor xpub cache in ToNormalizedString so that the wallet
does not need to be unlocked in order to get the normalized descriptor.
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/scriptpubkeyman.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp index c0c752cad6..ddb6b05071 100644 --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -2276,7 +2276,7 @@ bool DescriptorScriptPubKeyMan::GetDescriptorString(std::string& out) const FlatSigningProvider provider; provider.keys = GetKeys(); - return m_wallet_descriptor.descriptor->ToNormalizedString(provider, out); + return m_wallet_descriptor.descriptor->ToNormalizedString(provider, out, &m_wallet_descriptor.cache); } void DescriptorScriptPubKeyMan::UpgradeDescriptorCache() |