Skip to content

Commit

Permalink
[wallet] Remove keypool_topup_cleanups
Browse files Browse the repository at this point in the history
Unused function. Mostly reverts c25d90f

c25d90f... was merged as part of PR 11022 but is not required.

Github-Pull: #11044
Rebased-From: 1221f60
Tree-SHA512: da229b128bee5f124c009a1a2adfb4fa879366c81789824c426c9ce5209c835888a7e6cfeb1724551320a98cd08406a605372f84487a0d289cd6e02f9ac3ea21
  • Loading branch information
jnewbery authored and laanwj committed Aug 21, 2017
1 parent 2b59cfb commit 4ef8374
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/wallet/wallet.cpp
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions src/wallet/wallet.h
Expand Up @@ -984,8 +984,6 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface
*/
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();
Expand Down

0 comments on commit 4ef8374

Please sign in to comment.