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