tx: minor.
This commit is contained in:
parent
55f594d616
commit
ad4c7e81c8
@ -665,9 +665,11 @@ TX.prototype.signatureHashV1 = function signatureHashV1(index, prev, value, type
|
|||||||
if (!this.mutable)
|
if (!this.mutable)
|
||||||
this._hashOutputs = outputs;
|
this._hashOutputs = outputs;
|
||||||
}
|
}
|
||||||
} else if ((type & 0x1f) === hashType.SINGLE && index < this.outputs.length) {
|
} else if ((type & 0x1f) === hashType.SINGLE) {
|
||||||
const output = this.outputs[index];
|
if (index < this.outputs.length) {
|
||||||
outputs = digest.hash256(output.toRaw());
|
const output = this.outputs[index];
|
||||||
|
outputs = digest.hash256(output.toRaw());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const size = 156 + prev.getVarSize();
|
const size = 156 + prev.getVarSize();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user