From f6f0dceaab83c92a1f0360e4d2189dddadb78220 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 22 Aug 2016 23:01:38 -0700 Subject: [PATCH] fees: minor. --- lib/bcoin/fees.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/bcoin/fees.js b/lib/bcoin/fees.js index 9e7de8b2..5bbcc80b 100644 --- a/lib/bcoin/fees.js +++ b/lib/bcoin/fees.js @@ -505,7 +505,7 @@ PolicyEstimator.prototype.isPriPoint = function isPriPoint(fee, priority) { PolicyEstimator.prototype.processTX = function processTX(entry, current) { var height = entry.height; var hash = entry.tx.hash('hex'); - var fee, rate, priority, stat; + var fee, rate, priority, item; if (this.map[hash]) { this.logger.debug( @@ -533,21 +533,21 @@ PolicyEstimator.prototype.processTX = function processTX(entry, current) { this.logger.spam('estimatefee: Processing mempool tx %s.', entry.tx.rhash); if (fee === 0 || this.isPriPoint(rate, priority)) { - stat = new StatEntry(); - stat.blockHeight = height; - stat.bucketIndex = this.priStats.addTX(height, priority); + item = new StatEntry(); + item.blockHeight = height; + item.bucketIndex = this.priStats.addTX(height, priority); } else if (this.isFeePoint(rate, priority)) { - stat = new StatEntry(); - stat.blockHeight = height; - stat.bucketIndex = this.feeStats.addTX(height, rate); + item = new StatEntry(); + item.blockHeight = height; + item.bucketIndex = this.feeStats.addTX(height, rate); } - if (!stat) { + if (!item) { this.logger.spam('estimatefee: Not adding tx %s.', entry.tx.rhash); return; } - this.map[hash] = stat; + this.map[hash] = item; this.mapSize++; };