| 3508 | } |
| 3509 | |
| 3510 | int64_t CWallet::GetOldestKeyPoolTime() |
| 3511 | { |
| 3512 | LOCK(cs_wallet); |
| 3513 | |
| 3514 | WalletBatch batch(*database); |
| 3515 | |
| 3516 | // load oldest key from keypool, get time and return |
| 3517 | int64_t oldestKey = GetOldestKeyTimeInPool(setExternalKeyPool, batch); |
| 3518 | if (IsHDEnabled() && CanSupportFeature(FEATURE_HD_SPLIT)) { |
| 3519 | oldestKey = std::max(GetOldestKeyTimeInPool(setInternalKeyPool, batch), oldestKey); |
| 3520 | if (!set_pre_split_keypool.empty()) { |
| 3521 | oldestKey = std::max(GetOldestKeyTimeInPool(set_pre_split_keypool, batch), oldestKey); |
| 3522 | } |
| 3523 | } |
| 3524 | |
| 3525 | return oldestKey; |
| 3526 | } |
| 3527 | |
| 3528 | std::map<CTxDestination, CAmount> CWallet::GetAddressBalances() |
| 3529 | { |
no test coverage detected