From e718caa1ff6e996bf7b0cbf1e7a2cd00ea68b1e5 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 10 Jan 2017 00:07:18 -0800 Subject: [PATCH] tx: extra assertion. --- lib/primitives/tx.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/primitives/tx.js b/lib/primitives/tx.js index 374bfea4..84838934 100644 --- a/lib/primitives/tx.js +++ b/lib/primitives/tx.js @@ -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)