diff options
author | Andrew Chow <achow101-github@achow101.com> | 2021-10-18 15:27:27 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2022-01-14 15:03:15 -0500 |
commit | 8077862c5e8a3ed501f0baabc33536eb16922ceb (patch) | |
tree | 5affda338dde813a50971d6ad31b67d5766c6c24 /src/wallet/scriptpubkeyman.h | |
parent | 70134eb34f58f0c572e7c3775e292d408f03b5ab (diff) |
wallet: Refactor TopUp to be able to top up inactive chains too
Refactors TopUp so that it also tops up inactive chains. The bulk of
TopUp is moved to TopUpChain.
CHDChain also has 2 new in memory variables to track its highest used
indexes. This is used only for inactive hd chains so that they can be
topped up later in the same session (e.g. if the wallet is encrypted and
not unlocked at the time of MarkUnusedAddresses).
Diffstat (limited to 'src/wallet/scriptpubkeyman.h')
-rw-r--r-- | src/wallet/scriptpubkeyman.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h index ebe064fa0a..e97f0bb40c 100644 --- a/src/wallet/scriptpubkeyman.h +++ b/src/wallet/scriptpubkeyman.h @@ -354,6 +354,7 @@ private: */ bool TopUpInactiveHDChain(const CKeyID seed_id, int64_t index, bool internal); + bool TopUpChain(CHDChain& chain, unsigned int size); public: using ScriptPubKeyMan::ScriptPubKeyMan; |