diff --git a/lib/Script.js b/lib/Script.js index fcba36b..7c62f66 100644 --- a/lib/Script.js +++ b/lib/Script.js @@ -119,19 +119,64 @@ Script.prototype.isMultiSig = function() { this.chunks[this.chunks.length - 1] == OP_CHECKMULTISIG); }; + + + +// FOR TESTING +var _dumpChunks = function (scriptSig, label) { + console.log('## DUMP: ' + label + ' ##'); + for(var i=0; i2) || (l1<2 && l0>2 ))) throw new Error('TX sig types mismatch in merge'); - if (!l0 && !l1) return s0buf; - if ( l0 && !l1) return s0buf; - if (!l0 && l1) return s1buf; - - // Look for differences. - for (var i=0; i