MCPcopy Create free account
hub / github.com/ElementsProject/elements / RewriteDB

Method RewriteDB

src/wallet/scriptpubkeyman.cpp:529–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527}
528
529void LegacyScriptPubKeyMan::RewriteDB()
530{
531 LOCK(cs_KeyStore);
532 setInternalKeyPool.clear();
533 setExternalKeyPool.clear();
534 m_pool_key_to_index.clear();
535 // Note: can't top-up keypool here, because wallet is locked.
536 // User will be prompted to unlock wallet the next operation
537 // that requires a new key.
538}
539
540static int64_t GetOldestKeyTimeInPool(const std::set<int64_t>& setKeyPool, WalletBatch& batch) {
541 if (setKeyPool.empty()) {

Callers 2

LoadWalletMethod · 0.45
ZapSelectTxMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected