SideChain: count miners in the last 48 hours

This commit is contained in:
SChernykh 2021-10-29 10:37:12 +02:00
parent 75d62c0303
commit 0869326f39

View file

@ -738,9 +738,9 @@ uint64_t SideChain::miner_count()
MutexLock lock(m_sidechainLock);
// Delete wallets that weren't seen for more than 24 hours and return how many remain
// Delete wallets that weren't seen for more than 48 hours and return how many remain
for (auto it = m_seenWallets.begin(); it != m_seenWallets.end();) {
if (it->second + 24 * 60 * 60 <= cur_time) {
if (it->second + 48 * 60 * 60 <= cur_time) {
it = m_seenWallets.erase(it);
}
else {