fix sighash.

This commit is contained in:
Christopher Jeffrey 2016-03-15 14:46:58 -07:00
parent 1b3eb64998
commit c1aeb5c07f

View File

@ -198,7 +198,7 @@ TX.prototype.signatureHashV0 = function signatureHashV0(index, prev, type) {
if (typeof type === 'string')
type = constants.hashType[type];
assert(index >= 0 && index < copy.inputs.length);
assert(index >= 0 && index < this.inputs.length);
assert(prev instanceof bcoin.script);
// Clone the transaction.