| 35 | } |
| 36 | |
| 37 | void 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 | |
| 47 | bool in_txout_failures(struct txout_failures *txf, |
| 48 | const struct short_channel_id scid) |