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

Function tal_wally_end

common/utils.c:33–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void tal_wally_end(const tal_t *parent)
34{
35 tal_t *p;
36 while ((p = tal_first(wally_tal_ctx)) != NULL) {
37 /* Refuse to make a loop! */
38 assert(p != parent);
39#if DEVELOPER
40 /* Don't steal backtrace from wally_tal_ctx! */
41 if (tal_name(p) && streq(tal_name(p), "backtrace")) {
42 tal_free(p);
43 continue;
44 }
45#endif /* DEVELOPER */
46 tal_steal(parent, p);
47 }
48 wally_tal_ctx = tal_free(wally_tal_ctx);
49}
50
51void tal_wally_end_onto_(const tal_t *parent,
52 tal_t *from_wally,

Callers 15

sign_our_inputsFunction · 0.85
tx_parts_from_wally_txFunction · 0.85
bitcoin_tx_add_outputFunction · 0.85
bitcoin_tx_add_inputFunction · 0.85
bitcoin_tx_hash_for_sigFunction · 0.85
create_psbtFunction · 0.85
new_psbtFunction · 0.85
psbt_add_inputFunction · 0.85
psbt_append_inputFunction · 0.85
psbt_add_outputFunction · 0.85

Calls 3

tal_firstFunction · 0.85
tal_nameFunction · 0.85
tal_freeFunction · 0.85

Tested by 1

mainFunction · 0.68