aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2017-07-14 22:36:58 +0000
committerGregory Maxwell <greg@xiph.org>2017-07-16 00:11:31 +0000
commit3a53f19718a2207f0d74c32a611ae91703d9da8d (patch)
tree5c4ceaa486b6fa63f1960d32c50c0fa5fcbb1e9d /src/wallet/wallet.h
parent5cfdda2503c995cdd563b1a2a29162ac298d173d (diff)
downloadbitcoin-3a53f19718a2207f0d74c32a611ae91703d9da8d.tar.xz
Pushdown walletdb object through GenerateNewKey/DeriveNewChildKey.
This is needed but not sufficient for batching the wallet flushing when topping up the keypool.
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index 8848448682..e91a6effd3 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -697,7 +697,7 @@ private:
CHDChain hdChain;
/* HD derive new child key (on internal or external chain) */
- void DeriveNewChildKey(CKeyMetadata& metadata, CKey& secret, bool internal = false);
+ void DeriveNewChildKey(CWalletDB &walletdb, CKeyMetadata& metadata, CKey& secret, bool internal = false);
std::set<int64_t> setInternalKeyPool;
std::set<int64_t> setExternalKeyPool;
@@ -866,7 +866,7 @@ public:
* keystore implementation
* Generate a new key
*/
- CPubKey GenerateNewKey(bool internal = false);
+ CPubKey GenerateNewKey(CWalletDB& walletdb, bool internal = false);
//! Adds a key to the store, and saves it to disk.
bool AddKeyPubKey(const CKey& key, const CPubKey &pubkey) override;
//! Adds a key to the store, without saving it to disk (used by LoadWallet)