Merge pull request #13 from ryanxcharles/bug/multisig-bugs
fix bugs for cosign
This commit is contained in:
commit
0bdcfa3045
|
@ -118,8 +118,8 @@ function spec(b) {
|
||||||
{
|
{
|
||||||
return (this.chunks.length > 3 &&
|
return (this.chunks.length > 3 &&
|
||||||
isSmallIntOp(this.chunks[0]) &&
|
isSmallIntOp(this.chunks[0]) &&
|
||||||
isSmallIntOp(this.chunks[-2]) &&
|
isSmallIntOp(this.chunks[this.chunks.length-2]) &&
|
||||||
this.chunks[-1] == OP_CHECKMULTISIG);
|
this.chunks[this.chunks.length-1] == OP_CHECKMULTISIG);
|
||||||
};
|
};
|
||||||
|
|
||||||
// is this a script form we know?
|
// is this a script form we know?
|
||||||
|
@ -443,7 +443,7 @@ function spec(b) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Script.chunksToBuffer = function (chunks) {
|
Script.chunksToBuffer = function (chunks) {
|
||||||
var buf = Put();
|
var buf = new Put();
|
||||||
for (var i = 0, l = chunks.length; i < l; i++) {
|
for (var i = 0, l = chunks.length; i < l; i++) {
|
||||||
var data = chunks[i];
|
var data = chunks[i];
|
||||||
if (Buffer.isBuffer(data)) {
|
if (Buffer.isBuffer(data)) {
|
||||||
|
|
Loading…
Reference in New Issue