fix sighash.
This commit is contained in:
parent
1b3eb64998
commit
c1aeb5c07f
@ -198,7 +198,7 @@ TX.prototype.signatureHashV0 = function signatureHashV0(index, prev, type) {
|
|||||||
if (typeof type === 'string')
|
if (typeof type === 'string')
|
||||||
type = constants.hashType[type];
|
type = constants.hashType[type];
|
||||||
|
|
||||||
assert(index >= 0 && index < copy.inputs.length);
|
assert(index >= 0 && index < this.inputs.length);
|
||||||
assert(prev instanceof bcoin.script);
|
assert(prev instanceof bcoin.script);
|
||||||
|
|
||||||
// Clone the transaction.
|
// Clone the transaction.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user