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

Function add_to_txout_failures

gossipd/routing.c:262–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262static void add_to_txout_failures(struct routing_state *rstate,
263 const struct short_channel_id *scid)
264{
265 if (uintmap_add(&rstate->txout_failures, scid->u64, true)
266 && ++rstate->num_txout_failures == 10000) {
267 tal_free(rstate->txout_failure_timer);
268 txout_failure_age(rstate);
269 }
270}
271
272static bool in_txout_failures(struct routing_state *rstate,
273 const struct short_channel_id *scid)

Callers 4

in_txout_failuresFunction · 0.85
channel_spentFunction · 0.85
mainFunction · 0.85

Calls 2

tal_freeFunction · 0.85
txout_failure_ageFunction · 0.85

Tested by 1

mainFunction · 0.68