mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-01-24 11:15:57 +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);
|
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;
|
hash h;
|
||||||
for (auto i = m_incomingBlocks.begin(); i != m_incomingBlocks.end();) {
|
for (auto i = m_incomingBlocks.begin(); i != m_incomingBlocks.end();) {
|
||||||
if (cur_time < i->second + 60) {
|
if (cur_time < i->second + 10 * 60) {
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue