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

Function disabledmap_reset

plugins/renepay/disabledmap.c:27–37  ·  view source on GitHub ↗

FIXME: check success

Source from the content-addressed store, hash-verified

25
26// FIXME: check success
27void disabledmap_reset(struct disabledmap *p)
28{
29 /* This will remove and free every element in the maps. */
30 p->warned_ctx = tal_free(p->warned_ctx);
31 p->disabled_ctx = tal_free(p->disabled_ctx);
32
33 tal_resize(&p->disabled_nodes, 0);
34
35 p->disabled_ctx = tal(p, tal_t);
36 p->warned_ctx = tal(p, tal_t);
37}
38
39static void remove_scidd(struct short_channel_id_dir *scidd,
40 struct scidd_map *map)

Callers 2

payment_cleanupFunction · 0.70
payment_set_constraintsFunction · 0.70

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected