tx: extra assertion.

This commit is contained in:
Christopher Jeffrey 2017-01-10 00:07:18 -08:00
parent fb53992bf6
commit e718caa1ff
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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)