From 7c3d1f292d6914c355e5b3e8cbd5ea732bb735cd Mon Sep 17 00:00:00 2001
From: Daniel Cousens <github@dcousens.com>
Date: Wed, 26 Sep 2018 14:57:03 +1000
Subject: [PATCH] txb: add inline explanatory comment

---
 src/transaction_builder.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/transaction_builder.js b/src/transaction_builder.js
index 861483f..3d1b2c5 100644
--- a/src/transaction_builder.js
+++ b/src/transaction_builder.js
@@ -406,6 +406,9 @@ function build (type, input, allowIncomplete) {
       } else {
         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)
       return payments.p2ms({ m, pubkeys, signatures }, { allowIncomplete, validate })
     }