minerblock: fix starting weight.

This commit is contained in:
Christopher Jeffrey 2016-10-09 08:35:53 -07:00
parent d3ac6eba9e
commit 8a158bbe41
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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++) {