minor.
This commit is contained in:
parent
3d417f48df
commit
47618898c7
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user