diff --git a/lib/net/bip152.js b/lib/net/bip152.js index 8d92ba69..4e02441f 100644 --- a/lib/net/bip152.js +++ b/lib/net/bip152.js @@ -485,7 +485,6 @@ CompactBlock.prototype.toBlock = function toBlock() { block.ts = this.ts; block.bits = this.bits; block.nonce = this.nonce; - block.totalTX = this.totalTX; block._hash = this._hash; block._hhash = this._hhash; @@ -516,7 +515,7 @@ CompactBlock.prototype.fromBlock = function fromBlock(block, witness, nonce) { this.ts = block.ts; this.bits = block.bits; this.nonce = block.nonce; - this.totalTX = block.totalTX; + this.totalTX = block.txs.length; this._hash = block._hash; this._hhash = block._hhash;