Browse Source

fix isMultiSig

patch-2
Matias Alejo Garcia 11 years ago
parent
commit
be02d41ac2
  1. 1
      lib/Script.js

1
lib/Script.js

@ -110,6 +110,7 @@ function isSmallIntOp(opcode) {
Script.prototype.isMultiSig = function() {
return (this.chunks.length > 3 &&
isSmallIntOp(this.chunks[0]) &&
Buffer.isBuffer(this.chunks[1]) &&
isSmallIntOp(this.chunks[this.chunks.length - 2]) &&
this.chunks[this.chunks.length - 1] == Opcode.map.OP_CHECKMULTISIG);
};

Loading…
Cancel
Save