From ff28b7c4fb210fee75f9a78168251234592b2a74 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 18 Dec 2016 02:58:29 -0800 Subject: [PATCH] mempool/miner: cleanup. --- lib/mempool/fees.js | 17 ----------------- lib/mining/miner.js | 3 --- 2 files changed, 20 deletions(-) diff --git a/lib/mempool/fees.js b/lib/mempool/fees.js index 43fec745..0bde4c27 100644 --- a/lib/mempool/fees.js +++ b/lib/mempool/fees.js @@ -242,23 +242,6 @@ ConfirmStats.prototype.estimateMedian = function estimateMedian(target, needed, } } - // this.logger.debug('estimatefee: ' - // + ' For confirmation success in %d blocks' - // + ' %s %d need %s %s: %d from buckets %d - %d.' - // + ' Current bucket stats %d% %d/%d (%d mempool).', - // target, - // greater ? '>' : '<', - // breakpoint, - // this.type, - // greater ? '>' : '<', - // median, - // this.buckets[minBucket], - // this.buckets[maxBucket], - // 100 * conf / Math.max(1, total + extra), - // conf, - // total, - // extra); - return median; }; diff --git a/lib/mining/miner.js b/lib/mining/miner.js index d2945bed..60bb55a1 100644 --- a/lib/mining/miner.js +++ b/lib/mining/miner.js @@ -461,9 +461,6 @@ Miner.prototype.build = function build(attempt) { sigops += item.sigops; - // If we had a view we could do: - // sigops += tx.getSigopsCost(view, attempt.flags); - if (sigops > this.maxSigops) continue;