From d38de714680b532fd3accc8bc1b0860e02152f0b Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 15 Jun 2016 20:08:44 -0700 Subject: [PATCH] logs. --- lib/bcoin/fees.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/bcoin/fees.js b/lib/bcoin/fees.js index dac9aad2..209f6af0 100644 --- a/lib/bcoin/fees.js +++ b/lib/bcoin/fees.js @@ -355,7 +355,9 @@ PolicyEstimator.prototype.removeTX = function removeTX(hash) { var item = this.map[hash]; if (!item) { - bcoin.debug('estimatefee: Mempool tx %s not found.', hash); + bcoin.debug( + 'estimatefee: Mempool tx %s not found.', + utils.revHex(hash)); return; } @@ -406,7 +408,7 @@ PolicyEstimator.prototype.processTX = function processTX(entry, current) { var fee, rate, priority; if (this.map[hash]) { - bcoin.debug('estimatefee: Mempool tx %s already tracked.', hash); + bcoin.debug('estimatefee: Mempool tx %s already tracked.', entry.tx.rhash); return; } @@ -426,7 +428,7 @@ PolicyEstimator.prototype.processTX = function processTX(entry, current) { rate = entry.getRate(); priority = entry.getPriority(height); - bcoin.debug('estimatefee: Processing mempool tx %s.', hash); + bcoin.debug('estimatefee: Processing mempool tx %s.', entry.tx.rhash); if (fee === 0 || this.isPriPoint(rate, priority)) { this.map[hash] = { @@ -440,7 +442,7 @@ PolicyEstimator.prototype.processTX = function processTX(entry, current) { }; bcoin.debug('estimatefee: Rate: %d.', this.estimateFee()); } else { - bcoin.debug('estimatefee: Not adding tx %s.', hash); + bcoin.debug('estimatefee: Not adding tx %s.', entry.tx.rhash); } }; @@ -462,7 +464,7 @@ PolicyEstimator.prototype.processBlockTX = function processBlockTX(height, entry if (blocks <= 0) { bcoin.debug( 'estimatefee: Block tx %s had negative blocks to confirm (%d, %d).', - entry.tx.hash('hex'), + entry.tx.rhash, height, entry.height); return;