tx: extra assertion.
This commit is contained in:
parent
fb53992bf6
commit
e718caa1ff
@ -423,6 +423,7 @@ TX.prototype.signatureHash = function signatureHash(index, prev, value, type, ve
|
||||
assert(index >= 0 && index < this.inputs.length);
|
||||
assert(prev instanceof Script);
|
||||
assert(typeof value === 'number');
|
||||
assert(typeof type === 'number');
|
||||
|
||||
// Traditional sighashing
|
||||
if (version === 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user