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

Function combine_psbt

bitcoin/psbt.c:87–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87struct wally_psbt *combine_psbt(const tal_t *ctx,
88 const struct wally_psbt *psbt0,
89 const struct wally_psbt *psbt1)
90{
91 struct wally_psbt *combined_psbt;
92 tal_wally_start();
93 if (wally_psbt_clone_alloc(psbt0, 0, &combined_psbt) != WALLY_OK)
94 abort();
95 if (wally_psbt_combine(combined_psbt, psbt1) != WALLY_OK) {
96 tal_wally_end_onto(ctx, combined_psbt, struct wally_psbt);
97 return tal_free(combined_psbt);
98 }
99 tal_wally_end_onto(ctx, combined_psbt, struct wally_psbt);
100 return combined_psbt;
101}
102
103static bool parent_or_grandparent(const tal_t *goal, const tal_t *child)
104{

Callers 1

json_signpsbtFunction · 0.85

Calls 3

tal_wally_startFunction · 0.85
abortFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected