mirror of
https://github.com/mempool/mempool.git
synced 2025-09-26 18:06:42 +02:00
Prevent transaction backlog to cause mempool update halts
This commit is contained in:
@@ -122,6 +122,10 @@ class Mempool {
|
|||||||
console.log('Error finding transaction in mempool.');
|
console.log('Error finding transaction in mempool.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((new Date().getTime()) - start > config.MEMPOOL_REFRESH_RATE_MS * 10) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const newMempool: IMempool = {};
|
const newMempool: IMempool = {};
|
||||||
|
Reference in New Issue
Block a user