| 45 | } |
| 46 | |
| 47 | bool in_txout_failures(struct txout_failures *txf, |
| 48 | const struct short_channel_id scid) |
| 49 | { |
| 50 | if (uintmap_get(&txf->failures[RECENT], scid.u64)) |
| 51 | return true; |
| 52 | |
| 53 | /* If we were going to expire it, we no longer are. */ |
| 54 | if (uintmap_get(&txf->failures[AGED], scid.u64)) { |
| 55 | txout_failures_add(txf, scid); |
| 56 | return true; |
| 57 | } |
| 58 | return false; |
| 59 | } |