diff options
| author | Andrew Chow <[email protected]> | 2019-04-03 18:57:33 -0400 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2019-05-18 12:59:17 -0400 |
| commit | ccb26cf347a6fcc861768bbfbbd652e683ffd5bb (patch) | |
| tree | ba68494d972c3a4441bd2268f8a3cf798a2f08e0 /src/wallet/wallet.cpp | |
| parent | Have WalletBatch automatically flush every 1000 updates (diff) | |
| download | discoin-ccb26cf347a6fcc861768bbfbbd652e683ffd5bb.tar.xz discoin-ccb26cf347a6fcc861768bbfbbd652e683ffd5bb.zip | |
Batch writes for importmulti
When writing all of the imported data to the wallet, use a common
WalletBatch object so that batch writes are done and the writes
finish more quickly.
AddKeypoolPubkey is no longer needed so it is also removed
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 26f48fccd..dfe84238f 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3372,13 +3372,6 @@ bool CWallet::TopUpKeyPool(unsigned int kpSize) return true; } -void CWallet::AddKeypoolPubkey(const CPubKey& pubkey, const bool internal) -{ - WalletBatch batch(*database); - AddKeypoolPubkeyWithDB(pubkey, internal, batch); - NotifyCanGetAddressesChanged(); -} - void CWallet::AddKeypoolPubkeyWithDB(const CPubKey& pubkey, const bool internal, WalletBatch& batch) { LOCK(cs_wallet); |