From 5a300e785fbfe577d536b0b11bbacafe393665f5 Mon Sep 17 00:00:00 2001 From: Sky Young Date: Fri, 19 Jul 2019 11:43:36 -0600 Subject: [PATCH] Allow low fees This commit basically disables the fee estimation logic. Currently this is not needed as tx traffic on FLO is relatively minor --- lib/mempool/fees.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mempool/fees.js b/lib/mempool/fees.js index 2023e408..03385b18 100644 --- a/lib/mempool/fees.js +++ b/lib/mempool/fees.js @@ -30,7 +30,7 @@ const SUFFICIENT_PRITXS = 0.2; const MIN_FEERATE = 10; const MAX_FEERATE = 1e6; /* 1e7 */ const INF_FEERATE = consensus.MAX_MONEY; -const MIN_PRIORITY = 10; +const MIN_PRIORITY = 1; const MAX_PRIORITY = 1e16; const INF_PRIORITY = 1e9 * consensus.MAX_MONEY; const FEE_SPACING = 1.1; @@ -566,7 +566,7 @@ class PolicyEstimator { item.blockHeight = height; item.bucketIndex = this.priStats.addTX(height, priority); this.map.set(hash, item); - } else if (this.isFeePoint(rate, priority)) { + } else if (rate >= this.minTrackedFee || this.isFeePoint(rate, priority)) { const item = new StatEntry(); item.blockHeight = height; item.bucketIndex = this.feeStats.addTX(height, rate);