payments: dont always require output data

This commit is contained in:
Daniel Cousens 2018-06-27 11:22:35 +10:00
parent c0d52df808
commit 38efc35fdf
4 changed files with 37 additions and 21 deletions
src/payments

View file

@ -20,7 +20,8 @@ function stacksEqual (a, b) {
function p2ms (a, opts) {
if (
!a.output &&
!(a.pubkeys && a.m !== undefined)
!(a.pubkeys && a.m !== undefined) &&
!a.signatures
) throw new TypeError('Not enough data')
opts = opts || { validate: true }