aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-07-08 15:41:31 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-04-23 13:59:42 -0400
commitdb7177af8c159abbcc209f2caafcd45d54c181c5 (patch)
treed9f7d1f8b2aafc4026e32c3786d757b646f38b37 /src/wallet/wallet.h
parent78f8a92910d34247fa5d04368338c598d9908267 (diff)
downloadbitcoin-db7177af8c159abbcc209f2caafcd45d54c181c5.tar.xz
Add LoadDescriptorScriptPubKeyMan and SetActiveScriptPubKeyMan to CWallet
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index 8d0a357860..c7d5e66c0a 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -1234,6 +1234,16 @@ public:
//! Connect the signals from ScriptPubKeyMans to the signals in CWallet
void ConnectScriptPubKeyManNotifiers();
+
+ //! Instantiate a descriptor ScriptPubKeyMan from the WalletDescriptor and load it
+ void LoadDescriptorScriptPubKeyMan(uint256 id, WalletDescriptor& desc);
+
+ //! Sets the active ScriptPubKeyMan for the specified type and internal
+ //! @param[in] id The unique id for the ScriptPubKeyMan
+ //! @param[in] type The OutputType this ScriptPubKeyMan provides addresses for
+ //! @param[in] internal Whether this ScriptPubKeyMan provides change addresses
+ //! @param[in] memonly Whether to record this update to the database. Set to true for wallet loading, normally false when actually updating the wallet.
+ void SetActiveScriptPubKeyMan(uint256 id, OutputType type, bool internal, bool memonly = false);
};
/**