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)
|
||||
this._hashOutputs = outputs;
|
||||
}
|
||||
} else if ((type & 0x1f) === hashType.SINGLE && index < this.outputs.length) {
|
||||
const output = this.outputs[index];
|
||||
outputs = digest.hash256(output.toRaw());
|
||||
} else if ((type & 0x1f) === hashType.SINGLE) {
|
||||
if (index < this.outputs.length) {
|
||||
const output = this.outputs[index];
|
||||
outputs = digest.hash256(output.toRaw());
|
||||
}
|
||||
}
|
||||
|
||||
const size = 156 + prev.getVarSize();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user