From 47618898c725a341eb22791a40dc466cdc78faa8 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 22 Dec 2015 20:11:09 -0800 Subject: [PATCH] minor. --- lib/bcoin/block.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bcoin/block.js b/lib/bcoin/block.js index c0858b1c..29a3bfcc 100644 --- a/lib/bcoin/block.js +++ b/lib/bcoin/block.js @@ -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; }