mirror of
https://github.com/mempool/mempool.git
synced 2025-09-26 10:06:43 +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.');
|
||||
}
|
||||
}
|
||||
|
||||
if ((new Date().getTime()) - start > config.MEMPOOL_REFRESH_RATE_MS * 10) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
const newMempool: IMempool = {};
|
||||
|
Reference in New Issue
Block a user