Once an hour, or at 10000 entries, we expire old ones */
| 248 | |
| 249 | /* Once an hour, or at 10000 entries, we expire old ones */ |
| 250 | static 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 | |
| 262 | static void add_to_txout_failures(struct routing_state *rstate, |
| 263 | const struct short_channel_id *scid) |
no test coverage detected