From 0869326f3986b331093b308dcbcaee787e309e5a Mon Sep 17 00:00:00 2001 From: SChernykh Date: Fri, 29 Oct 2021 10:37:12 +0200 Subject: [PATCH] SideChain: count miners in the last 48 hours --- src/side_chain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/side_chain.cpp b/src/side_chain.cpp index 9fe4bc8..03794cc 100644 --- a/src/side_chain.cpp +++ b/src/side_chain.cpp @@ -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 {