bip152: do not use Block.totalTX.
This commit is contained in:
parent
8453c250dc
commit
f778a8c1b5
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user