Skip to content

Commit 1221f60

Browse files
committed
[wallet] Remove keypool_topup_cleanups
Unused function. Mostly reverts c25d90f c25d90f... was merged as part of PR 11022 but is not required.
1 parent c2704ec commit 1221f60

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/wallet/wallet.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3663,11 +3663,6 @@ void CWallet::MarkReserveKeysAsUsed(int64_t keypool_id)
36633663
}
36643664
}
36653665

3666-
bool CWallet::HasUnusedKeys(int min_keys) const
3667-
{
3668-
return setExternalKeyPool.size() >= min_keys && (setInternalKeyPool.size() >= min_keys || !CanSupportFeature(FEATURE_HD_SPLIT));
3669-
}
3670-
36713666
void CWallet::GetScriptForMining(std::shared_ptr<CReserveScript> &script)
36723667
{
36733668
std::shared_ptr<CReserveKey> rKey = std::make_shared<CReserveKey>(this);

src/wallet/wallet.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,8 +984,6 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface
984984
*/
985985
void MarkReserveKeysAsUsed(int64_t keypool_id);
986986
const std::map<CKeyID, int64_t>& GetAllReserveKeys() const { return m_pool_key_to_index; }
987-
/** Does the wallet have at least min_keys in the keypool? */
988-
bool HasUnusedKeys(int min_keys) const;
989987

990988
std::set< std::set<CTxDestination> > GetAddressGroupings();
991989
std::map<CTxDestination, CAmount> GetAddressBalances();

0 commit comments

Comments
 (0)