mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 06:44:24 +01:00
common: use bitcoin_outpoint.
I started pulling this thread, and the entire codebase got unravelled. Oh well, it's done now! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
e7a8a0d291
commit
c503232cde
@@ -99,11 +99,11 @@ static const u8 *linearize_output(const tal_t *ctx,
|
||||
{
|
||||
struct wally_psbt *psbt = create_psbt(NULL, 1, 1, 0);
|
||||
size_t byte_len;
|
||||
struct bitcoin_txid txid;
|
||||
struct bitcoin_outpoint outpoint;
|
||||
|
||||
/* Add a 'fake' input so this will linearize the tx */
|
||||
memset(&txid, 0, sizeof(txid));
|
||||
psbt_append_input(psbt, &txid, 0, 0, NULL, NULL, NULL);
|
||||
memset(&outpoint, 0, sizeof(outpoint));
|
||||
psbt_append_input(psbt, &outpoint, 0, NULL, NULL, NULL);
|
||||
|
||||
tal_wally_start();
|
||||
if (wally_tx_add_output(psbt->tx, tx_out) != WALLY_OK)
|
||||
|
||||
Reference in New Issue
Block a user