| 270 | } |
| 271 | |
| 272 | static bool in_txout_failures(struct routing_state *rstate, |
| 273 | const struct short_channel_id *scid) |
| 274 | { |
| 275 | if (uintmap_get(&rstate->txout_failures, scid->u64)) |
| 276 | return true; |
| 277 | |
| 278 | /* If we were going to expire it, we no longer are. */ |
| 279 | if (uintmap_get(&rstate->txout_failures_old, scid->u64)) { |
| 280 | add_to_txout_failures(rstate, scid); |
| 281 | return true; |
| 282 | } |
| 283 | return false; |
| 284 | } |
| 285 | |
| 286 | struct routing_state *new_routing_state(const tal_t *ctx, |
| 287 | const struct node_id *local_id, |