Tweaked `block_seen` logic

pull/271/head
SChernykh 2023-05-31 17:03:45 +02:00
parent 3988a69946
commit ee16ce10c1
1 changed files with 2 additions and 2 deletions

View File

@ -498,10 +498,10 @@ void SideChain::cleanup_incoming_blocks()
MutexLock lock(m_incomingBlocksLock);
// Forget seen blocks that were added more than a minute ago
// Forget seen blocks that were added more than 10 minutes ago
hash h;
for (auto i = m_incomingBlocks.begin(); i != m_incomingBlocks.end();) {
if (cur_time < i->second + 60) {
if (cur_time < i->second + 10 * 60) {
++i;
}
else {