From 8a158bbe41ce8e77866de2681f8afe36cd53a6c9 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 9 Oct 2016 08:35:53 -0700 Subject: [PATCH] minerblock: fix starting weight. --- lib/miner/minerblock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/miner/minerblock.js b/lib/miner/minerblock.js index 6c399828..baf85ae8 100644 --- a/lib/miner/minerblock.js +++ b/lib/miner/minerblock.js @@ -285,7 +285,7 @@ MinerBlock.prototype.build = function build(entries) { var len = Math.min(entries.length, constants.block.MAX_SIZE); var i, entry, tx, weight, sigops; - this.weight = this.block.getWeight() + 12; + this.weight = this.block.getWeight() + 28; this.sigops = this.coinbase.getSigopsWeight(this.flags); for (i = 0; i < len; i++) {