psbt: clean up interface for setting metadata on PSBT inputs

it's just neater if it's not all wrapped up together, simplifies the
interface a smidge
This commit is contained in:
niftynei
2020-09-09 19:40:29 +09:30
committed by Rusty Russell
parent 169b7817dc
commit 303263d381
31 changed files with 92 additions and 280 deletions

View File

@@ -100,7 +100,7 @@ static const u8 *linearize_output(const tal_t *ctx,
/* Add a 'fake' input so this will linearize the tx */
memset(&txid, 0, sizeof(txid));
psbt_append_input(psbt, &txid, 0, 0, NULL, AMOUNT_SAT(0), NULL, NULL, NULL);
psbt_append_input(psbt, &txid, 0, 0, NULL, NULL, NULL);
if (wally_tx_add_output(psbt->tx, tx_out) != WALLY_OK)
abort();