fix isMultiSig
This commit is contained in:
parent
ddd1476a39
commit
be02d41ac2
|
@ -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…
Reference in New Issue