mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-01-08 19:59:30 +00:00
Tweaked block_seen
logic
This commit is contained in:
parent
3988a69946
commit
ee16ce10c1
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue