mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 05:12:35 +01:00
parent
6688421e39
commit
b92eef8198
@ -127,6 +127,7 @@ class Mempool {
|
||||
// Prevent mempool from clear on bitcoind restart by delaying the deletion
|
||||
if (this.mempoolProtection === 0 && transactions.length < currentMempoolSize / 2) {
|
||||
this.mempoolProtection = 1;
|
||||
this.inSync = false;
|
||||
console.log('Mempool clear protection triggered.');
|
||||
setTimeout(() => {
|
||||
this.mempoolProtection = 2;
|
||||
|
@ -37,10 +37,6 @@ class Statistics {
|
||||
const txPerSecond = memPool.getTxPerSecond();
|
||||
const vBytesPerSecond = memPool.getVBytesPerSecond();
|
||||
|
||||
if (txPerSecond === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('Running statistics');
|
||||
|
||||
let memPoolArray: TransactionExtended[] = [];
|
||||
|
Loading…
Reference in New Issue
Block a user