Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115349
D3998.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D3998.diff
View Options
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -1086,8 +1086,6 @@
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(size_t min_keys) const;
std::set<std::set<CTxDestination>> GetAddressGroupings();
std::map<CTxDestination, Amount> GetAddressBalances();
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -4005,16 +4005,11 @@
}
LearnAllRelatedScripts(keypool.vchPubKey);
batch.ErasePool(index);
+ LogPrintf("keypool index %d removed\n", index);
it = setKeyPool->erase(it);
}
}
-bool CWallet::HasUnusedKeys(size_t 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);
CPubKey pubkey;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 10:55 (12 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187420
Default Alt Text
D3998.diff (1 KB)
Attached To
D3998: Merge #11044: [wallet] Keypool topup cleanups
Event Timeline
Log In to Comment