@@ -3761,14 +3761,14 @@ void CWallet::ListLockedCoins(std::vector<COutPoint>& vOutpts) const
3761
3761
3762
3762
/* * @} */ // end of Actions
3763
3763
3764
- void CWallet::GetKeyBirthTimes (interfaces::Chain::Lock& locked_chain, std::map<CTxDestination , int64_t >& mapKeyBirth) const {
3764
+ void CWallet::GetKeyBirthTimes (interfaces::Chain::Lock& locked_chain, std::map<CKeyID , int64_t >& mapKeyBirth) const {
3765
3765
AssertLockHeld (cs_wallet);
3766
3766
mapKeyBirth.clear ();
3767
3767
3768
3768
// get birth times for keys with metadata
3769
3769
for (const auto & entry : mapKeyMetadata) {
3770
3770
if (entry.second .nCreateTime ) {
3771
- mapKeyBirth[PKHash ( entry.first ) ] = entry.second .nCreateTime ;
3771
+ mapKeyBirth[entry.first ] = entry.second .nCreateTime ;
3772
3772
}
3773
3773
}
3774
3774
@@ -3777,7 +3777,7 @@ void CWallet::GetKeyBirthTimes(interfaces::Chain::Lock& locked_chain, std::map<C
3777
3777
const int max_height = tip_height && *tip_height > 144 ? *tip_height - 144 : 0 ; // the tip can be reorganized; use a 144-block safety margin
3778
3778
std::map<CKeyID, int > mapKeyFirstBlock;
3779
3779
for (const CKeyID &keyid : GetKeys ()) {
3780
- if (mapKeyBirth.count (PKHash ( keyid) ) == 0 )
3780
+ if (mapKeyBirth.count (keyid) == 0 )
3781
3781
mapKeyFirstBlock[keyid] = max_height;
3782
3782
}
3783
3783
@@ -3805,7 +3805,7 @@ void CWallet::GetKeyBirthTimes(interfaces::Chain::Lock& locked_chain, std::map<C
3805
3805
3806
3806
// Extract block timestamps for those keys
3807
3807
for (const auto & entry : mapKeyFirstBlock)
3808
- mapKeyBirth[PKHash ( entry.first ) ] = locked_chain.getBlockTime (entry.second ) - TIMESTAMP_WINDOW; // block times can be 2h off
3808
+ mapKeyBirth[entry.first ] = locked_chain.getBlockTime (entry.second ) - TIMESTAMP_WINDOW; // block times can be 2h off
3809
3809
}
3810
3810
3811
3811
/* *
0 commit comments