diff options
author | Ava Chow <github@achow101.com> | 2024-08-07 16:29:06 -0400 |
---|---|---|
committer | Ava Chow <github@achow101.com> | 2024-08-08 12:47:22 -0400 |
commit | 1bbf46e2dae4599d04c79aaacf7c5db00b2e707f (patch) | |
tree | 67c7e7b72af0d742d5628cba43179d1be9a15ea4 /src/wallet/walletutil.cpp | |
parent | 0d640c6f02bc20e5c1be773443dd74d8806d953b (diff) |
descriptors: Change Parse to return vector of descriptors
When given a descriptor which contins a multipath derivation specifier,
a vector of descriptors will be returned.
Diffstat (limited to 'src/wallet/walletutil.cpp')
-rw-r--r-- | src/wallet/walletutil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/walletutil.cpp b/src/wallet/walletutil.cpp index 0de2617d45..53e65d0194 100644 --- a/src/wallet/walletutil.cpp +++ b/src/wallet/walletutil.cpp @@ -94,8 +94,8 @@ WalletDescriptor GenerateWalletDescriptor(const CExtPubKey& master_key, const Ou // Make the descriptor FlatSigningProvider keys; std::string error; - std::unique_ptr<Descriptor> desc = Parse(desc_str, keys, error, false); - WalletDescriptor w_desc(std::move(desc), creation_time, 0, 0, 0); + std::vector<std::unique_ptr<Descriptor>> desc = Parse(desc_str, keys, error, false); + WalletDescriptor w_desc(std::move(desc.at(0)), creation_time, 0, 0, 0); return w_desc; } |