MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetOldestKeyPoolTime

Method GetOldestKeyPoolTime

src/wallet/wallet.cpp:3510–3526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3508}
3509
3510int64_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
3528std::map<CTxDestination, CAmount> CWallet::GetAddressBalances()
3529{

Callers 1

getwalletinfoFunction · 0.80

Calls 3

GetOldestKeyTimeInPoolFunction · 0.85
maxFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected