MCPcopy Create free account
hub / github.com/ElementsProject/lightning / psbt_final_tx

Function psbt_final_tx

bitcoin/psbt.c:851–866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

849}
850
851struct wally_tx *psbt_final_tx(const tal_t *ctx, const struct wally_psbt *psbt)
852{
853 struct wally_tx *wtx;
854
855 if (!psbt_is_finalized(psbt))
856 return NULL;
857
858 tal_wally_start();
859 if (wally_psbt_extract(psbt, /* flags */ 0, &wtx) == WALLY_OK)
860 tal_add_destructor(wtx, wally_tx_destroy);
861 else
862 wtx = NULL;
863
864 tal_wally_end_onto(ctx, wtx, struct wally_tx);
865 return wtx;
866}
867
868struct wally_psbt *psbt_from_b64(const tal_t *ctx,
869 const char *b64,

Callers 10

bitcoin_tx_with_psbtFunction · 0.85
json_dev_finalizepsbtFunction · 0.85
json_sendpsbtFunction · 0.85
feerate_satisfiedFunction · 0.85
handle_peer_tx_sigs_sentFunction · 0.85
handle_peer_tx_sigs_msgFunction · 0.85
spend_anchorFunction · 0.85
signpsbt_doneFunction · 0.85

Calls 2

psbt_is_finalizedFunction · 0.85
tal_wally_startFunction · 0.85

Tested by

no test coverage detected