mirror of https://github.com/SChernykh/p2pool
Tweaked `block_seen` logic
parent
3988a69946
commit
ee16ce10c1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue