diff options
author | Andrew Chow <github@achow101.com> | 2022-12-19 16:59:25 -0500 |
---|---|---|
committer | Ava Chow <github@achow101.com> | 2024-03-20 16:15:43 -0400 |
commit | 54e74f46ea10e479be682750c1279165f29bb2f4 (patch) | |
tree | 51cf003042827ed13a74b5a00eac8b95c5ebf7e3 /src/wallet/wallet.h | |
parent | 3b09d0eb7f2c1d6ebdab73d18db28e5bf7d74f18 (diff) | |
download | bitcoin-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.h | 2 |
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); |