block: fix for style conventions.
This commit is contained in:
parent
566b2e9916
commit
841bf86d7d
@ -195,9 +195,9 @@ Block.prototype._checkBlock = function checkBlock() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// First TX must be a coinbase
|
// First TX must be a coinbase
|
||||||
if (!this.txs.length
|
if (!this.txs.length ||
|
||||||
|| this.txs[0].inputs.length !== 1
|
this.txs[0].inputs.length !== 1 ||
|
||||||
|| +this.txs[0].inputs[0].out.hash !== 0) {
|
+this.txs[0].inputs[0].out.hash !== 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user