Reducing mempool detection sensitivity to 25%

refs #76
This commit is contained in:
softsimon
2020-06-18 17:10:07 +07:00
parent 2f0d29e315
commit 0ba604609a
2 changed files with 2 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ class Mempool {
}
// 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 <= 0.80) {
this.mempoolProtection = 1;
this.inSync = false;
console.log('Mempool clear protection triggered.');