aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletutil.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-07-13 14:32:24 -0400
committerAndrew Chow <github@achow101.com>2022-08-25 16:25:53 -0400
commit35f428fae68ad974abdce0fa905148f620a9443c (patch)
tree756eea785c5ba484d4a1ba1f26f9910e540616b6 /src/wallet/walletutil.h
parentea1ab390e4dac128e3a37d4884528c3f4128ed83 (diff)
downloadbitcoin-35f428fae68ad974abdce0fa905148f620a9443c.tar.xz
Implement LegacyScriptPubKeyMan::MigrateToDescriptor
Diffstat (limited to 'src/wallet/walletutil.h')
-rw-r--r--src/wallet/walletutil.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/wallet/walletutil.h b/src/wallet/walletutil.h
index 788d41ceb7..8434d64fb5 100644
--- a/src/wallet/walletutil.h
+++ b/src/wallet/walletutil.h
@@ -104,6 +104,20 @@ public:
WalletDescriptor() {}
WalletDescriptor(std::shared_ptr<Descriptor> descriptor, uint64_t creation_time, int32_t range_start, int32_t range_end, int32_t next_index) : descriptor(descriptor), creation_time(creation_time), range_start(range_start), range_end(range_end), next_index(next_index) {}
};
+
+class CWallet;
+class DescriptorScriptPubKeyMan;
+
+/** struct containing information needed for migrating legacy wallets to descriptor wallets */
+struct MigrationData
+{
+ CExtKey master_key;
+ std::vector<std::pair<std::string, int64_t>> watch_descs;
+ std::vector<std::pair<std::string, int64_t>> solvable_descs;
+ std::vector<std::unique_ptr<DescriptorScriptPubKeyMan>> desc_spkms;
+ std::shared_ptr<CWallet> watchonly_wallet{nullptr};
+ std::shared_ptr<CWallet> solvable_wallet{nullptr};
+};
} // namespace wallet
#endif // BITCOIN_WALLET_WALLETUTIL_H