txb: add inline explanatory comment
This commit is contained in:
parent
1119a449a5
commit
7c3d1f292d
1 changed files with 3 additions and 0 deletions
|
@ -406,6 +406,9 @@ function build (type, input, allowIncomplete) {
|
||||||
} else {
|
} else {
|
||||||
signatures = signatures.filter(x => x)
|
signatures = signatures.filter(x => x)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if the transaction is not not complete (complete), or if signatures.length === m, validate
|
||||||
|
// otherwise, the number of OP_0's may be >= m, so don't validate (boo)
|
||||||
const validate = !allowIncomplete || (m === signatures.length)
|
const validate = !allowIncomplete || (m === signatures.length)
|
||||||
return payments.p2ms({ m, pubkeys, signatures }, { allowIncomplete, validate })
|
return payments.p2ms({ m, pubkeys, signatures }, { allowIncomplete, validate })
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue