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

Function txout_failures_add

gossipd/txout_failures.c:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void txout_failures_add(struct txout_failures *txf,
38 const struct short_channel_id scid)
39{
40 if (uintmap_add(&txf->failures[RECENT], scid.u64, true)
41 && ++txf->num == MAX_ENTRIES) {
42 tal_free(txf->age_timer);
43 txout_failures_age(txf);
44 }
45}
46
47bool in_txout_failures(struct txout_failures *txf,
48 const struct short_channel_id scid)

Callers 4

in_txout_failuresFunction · 0.85
remove_channelFunction · 0.85
mainFunction · 0.85

Calls 2

tal_freeFunction · 0.85
txout_failures_ageFunction · 0.85

Tested by 1

mainFunction · 0.68