aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorAndrew Chow <github@achow101.com>2022-12-19 16:59:25 -0500
committerAva Chow <github@achow101.com>2024-03-20 16:15:43 -0400
commit54e74f46ea10e479be682750c1279165f29bb2f4 (patch)
tree51cf003042827ed13a74b5a00eac8b95c5ebf7e3 /src/wallet/wallet.h
parent3b09d0eb7f2c1d6ebdab73d18db28e5bf7d74f18 (diff)
downloadbitcoin-54e74f46ea10e479be682750c1279165f29bb2f4.tar.xz
wallet: Refactor function for single DescSPKM setup
We will need access to a function that sets up a singular DescriptorSPKM, so refactor this out of the multiple DescriptorSPKM setup function.
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index 305d359a64..8586c09b59 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -1018,6 +1018,8 @@ public:
//! @param[in] internal Whether this ScriptPubKeyMan provides change addresses
void DeactivateScriptPubKeyMan(uint256 id, OutputType type, bool internal);
+ //! Create new DescriptorScriptPubKeyMan and add it to the wallet
+ DescriptorScriptPubKeyMan& SetupDescriptorScriptPubKeyMan(WalletBatch& batch, const CExtKey& master_key, const OutputType& output_type, bool internal) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
//! Create new DescriptorScriptPubKeyMans and add them to the wallet
void SetupDescriptorScriptPubKeyMans(const CExtKey& master_key) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
void SetupDescriptorScriptPubKeyMans() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);