Prevent transaction backlog to cause mempool update halts
This commit is contained in:
1 parent
e2d26b90bf
commit
9cfee07f47
1 file changed
+4
@@ -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