aboutsummaryrefslogtreecommitdiff
path: root/src/script/descriptor.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2021-03-01 14:48:59 -0500
committerAndrew Chow <achow101-github@achow101.com>2021-06-24 14:08:45 -0400
commit3280704886b60644d103a5eb310691c003a39328 (patch)
tree66a03f5b71657f1823842c9d9404b4780289e0a6 /src/script/descriptor.h
parent7a26ff10c2f2e139fbc63e2f37fb33ea4efae088 (diff)
downloadbitcoin-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/script/descriptor.h')
-rw-r--r--src/script/descriptor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/descriptor.h b/src/script/descriptor.h
index 8379905660..ecd7c4eea5 100644
--- a/src/script/descriptor.h
+++ b/src/script/descriptor.h
@@ -115,7 +115,7 @@ struct Descriptor {
virtual bool ToPrivateString(const SigningProvider& provider, std::string& out) const = 0;
/** Convert the descriptor to a normalized string. Normalized descriptors have the xpub at the last hardened step. This fails if the provided provider does not have the private keys to derive that xpub. */
- virtual bool ToNormalizedString(const SigningProvider& provider, std::string& out) const = 0;
+ virtual bool ToNormalizedString(const SigningProvider& provider, std::string& out, const DescriptorCache* cache = nullptr) const = 0;
/** Expand a descriptor at a specified position.
*