Skip to content

psbts with 0 outputs should be serializable. #205

Description

@rustyrussell

We are using psbts to hand around our new APIs for merging later. It's particularly convenient for our new "fundpsbt" to return a set of utxos to spend in psbt form.

Adding a dummy output is awkward: we have have overfunded and the user may want to create a change output, so we'd rather them end up with an invalid tx than accidentally pay a huge fee.

Unfortunately, transaction.c:1986 refuses to allow a zero output tx, so converting our psbt to base64 fails...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions