| 527 | } |
| 528 | |
| 529 | void 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 | |
| 540 | static int64_t GetOldestKeyTimeInPool(const std::set<int64_t>& setKeyPool, WalletBatch& batch) { |
| 541 | if (setKeyPool.empty()) { |
no test coverage detected