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

Function psbt_final_tx

bitcoin/psbt.c:648–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648struct wally_tx *psbt_final_tx(const tal_t *ctx, const struct wally_psbt *psbt)
649{
650 struct wally_tx *wtx;
651
652 if (!psbt_is_finalized(psbt))
653 return NULL;
654
655 tal_wally_start();
656 if (wally_psbt_extract(psbt, &wtx) == WALLY_OK)
657 tal_add_destructor(wtx, wally_tx_destroy);
658 else
659 wtx = NULL;
660
661 tal_wally_end_onto(ctx, wtx, struct wally_tx);
662 return wtx;
663}
664
665struct wally_psbt *psbt_from_b64(const tal_t *ctx,
666 const char *b64,

Callers 5

bitcoin_tx_with_psbtFunction · 0.70
json_sendpsbtFunction · 0.50
feerate_satisfiedFunction · 0.50
handle_peer_tx_sigs_sentFunction · 0.50
handle_peer_tx_sigs_msgFunction · 0.50

Calls 2

psbt_is_finalizedFunction · 0.85
tal_wally_startFunction · 0.85

Tested by

no test coverage detected