payments: dont always require output data
This commit is contained in:
parent
c0d52df808
commit
38efc35fdf
4 changed files with 37 additions and 21 deletions
src/payments
|
@ -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 }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue