Prevent transaction backlog to cause mempool update halts
This commit is contained in:
parent
e2d26b90bf
commit
9cfee07f47
@ -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 = {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user