diff options
| author | John Newbery <[email protected]> | 2017-08-14 13:36:25 -0400 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2017-08-16 17:22:49 -0400 |
| commit | 1221f60c94971c0f66abe5fdf086087a173bb0ac (patch) | |
| tree | 8146470dd268376724a84e455b21a2f26aea1839 /src | |
| parent | Merge #10607: scripted-diff: stop using the gArgs wrappers (diff) | |
| download | discoin-1221f60c94971c0f66abe5fdf086087a173bb0ac.tar.xz discoin-1221f60c94971c0f66abe5fdf086087a173bb0ac.zip | |
[wallet] Remove keypool_topup_cleanups
Unused function. Mostly reverts c25d90f125d69e33688288eff439eb7be75012e9
c25d90f... was merged as part of PR 11022 but is not required.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/wallet.cpp | 5 | ||||
| -rw-r--r-- | src/wallet/wallet.h | 2 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 599e74149..aa0713ea0 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3663,11 +3663,6 @@ void CWallet::MarkReserveKeysAsUsed(int64_t keypool_id) } } -bool CWallet::HasUnusedKeys(int min_keys) const -{ - return setExternalKeyPool.size() >= min_keys && (setInternalKeyPool.size() >= min_keys || !CanSupportFeature(FEATURE_HD_SPLIT)); -} - void CWallet::GetScriptForMining(std::shared_ptr<CReserveScript> &script) { std::shared_ptr<CReserveKey> rKey = std::make_shared<CReserveKey>(this); diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index f97a99d82..296bb7321 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -984,8 +984,6 @@ public: */ void MarkReserveKeysAsUsed(int64_t keypool_id); const std::map<CKeyID, int64_t>& GetAllReserveKeys() const { return m_pool_key_to_index; } - /** Does the wallet have at least min_keys in the keypool? */ - bool HasUnusedKeys(int min_keys) const; std::set< std::set<CTxDestination> > GetAddressGroupings(); std::map<CTxDestination, CAmount> GetAddressBalances(); |