diff --git a/lib/bcoin/block.js b/lib/bcoin/block.js index e4a0e3ca..72ef3373 100644 --- a/lib/bcoin/block.js +++ b/lib/bcoin/block.js @@ -195,9 +195,9 @@ Block.prototype._checkBlock = function checkBlock() { } // First TX must be a coinbase - if (!this.txs.length - || this.txs[0].inputs.length !== 1 - || +this.txs[0].inputs[0].out.hash !== 0) { + if (!this.txs.length || + this.txs[0].inputs.length !== 1 || + +this.txs[0].inputs[0].out.hash !== 0) { return false; }