diff --git a/backend/src/api/mempool.ts b/backend/src/api/mempool.ts index 45f521046..d847eb048 100644 --- a/backend/src/api/mempool.ts +++ b/backend/src/api/mempool.ts @@ -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; diff --git a/backend/src/api/statistics.ts b/backend/src/api/statistics.ts index fcbb050ad..6e5eb8119 100644 --- a/backend/src/api/statistics.ts +++ b/backend/src/api/statistics.ts @@ -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[] = [];