This commit is contained in:
Christopher Jeffrey 2015-12-22 20:11:09 -08:00
parent 3d417f48df
commit 47618898c7

View File

@ -62,7 +62,7 @@ function Block(data, subtype) {
if (this.version >= 2) {
tx = this.txs[0];
if (tx && tx.inputs[0] && +tx.inputs[0].out.hash === 0) {
var height = bcoin.script.coinbaseHeight(tx.inputs[0].script);
height = bcoin.script.coinbaseHeight(tx.inputs[0].script);
if (height > 0)
this._height = height;
}