fix isMultiSig

This commit is contained in:
Matias Alejo Garcia 2014-05-25 23:00:49 -03:00
parent ddd1476a39
commit be02d41ac2
1 changed files with 1 additions and 0 deletions

View File

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