diff options
| author | Andrew Chow <[email protected]> | 2020-05-21 22:43:58 -0400 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2020-05-21 22:43:58 -0400 |
| commit | 0122fbab4c340b23ae56173de6c5ab866ba25ab8 (patch) | |
| tree | 8fbde6abd2086591ecebf24ad6918dd2bedb4f32 /src/wallet/scriptpubkeyman.h | |
| parent | Merge #18787: wallet: descriptor wallet release notes and cleanups (diff) | |
| download | discoin-0122fbab4c340b23ae56173de6c5ab866ba25ab8.tar.xz discoin-0122fbab4c340b23ae56173de6c5ab866ba25ab8.zip | |
Split SetHDChain into AddHDChain and LoadHDChain
Remove the memonly bool and follow our typical Add and Load pattern.
Diffstat (limited to 'src/wallet/scriptpubkeyman.h')
| -rw-r--r-- | src/wallet/scriptpubkeyman.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h index 2f6245bbe..5b0ccc0ac 100644 --- a/src/wallet/scriptpubkeyman.h +++ b/src/wallet/scriptpubkeyman.h @@ -421,8 +421,10 @@ public: //! Generate a new key CPubKey GenerateNewKey(WalletBatch& batch, CHDChain& hd_chain, bool internal = false) EXCLUSIVE_LOCKS_REQUIRED(cs_KeyStore); - /* Set the HD chain model (chain child index counters) */ - void SetHDChain(const CHDChain& chain, bool memonly); + /* Set the HD chain model (chain child index counters) and writes it to the database */ + void AddHDChain(const CHDChain& chain); + //! Load a HD chain model (used by LoadWallet) + void LoadHDChain(const CHDChain& chain); const CHDChain& GetHDChain() const { return m_hd_chain; } void AddInactiveHDChain(const CHDChain& chain); |