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

Function txout_failure_age

gossipd/routing.c:250–260  ·  view source on GitHub ↗

Once an hour, or at 10000 entries, we expire old ones */

Source from the content-addressed store, hash-verified

248
249/* Once an hour, or at 10000 entries, we expire old ones */
250static void txout_failure_age(struct routing_state *rstate)
251{
252 uintmap_clear(&rstate->txout_failures_old);
253 rstate->txout_failures_old = rstate->txout_failures;
254 uintmap_init(&rstate->txout_failures);
255 rstate->num_txout_failures = 0;
256
257 rstate->txout_failure_timer = new_reltimer(rstate->timers,
258 rstate, time_from_sec(3600),
259 txout_failure_age, rstate);
260}
261
262static void add_to_txout_failures(struct routing_state *rstate,
263 const struct short_channel_id *scid)

Callers 2

add_to_txout_failuresFunction · 0.85
new_routing_stateFunction · 0.85

Calls 1

time_from_secFunction · 0.85

Tested by

no test coverage detected