gossipd ignores updates for dying channels: don't retry with stale ones */
| 1397 | |
| 1398 | /* gossipd ignores updates for dying channels: don't retry with stale ones */ |
| 1399 | static void disable_if_dying(struct payment *p, const struct route_hop *errchan) |
| 1400 | { |
| 1401 | const struct gossmap *gossmap = get_raw_gossmap(p); |
| 1402 | const struct gossmap_chan *c = gossmap_find_chan(gossmap, &errchan->scid); |
| 1403 | |
| 1404 | if (c && gossmap_chan_is_dying(gossmap, c)) |
| 1405 | channel_hints_update(p, errchan->scid, errchan->direction, |
| 1406 | false, false, NULL, errchan->capacity, |
| 1407 | NULL); |
| 1408 | } |
| 1409 | |
| 1410 | static struct command_result * |
| 1411 | handle_intermediate_failure(struct command *cmd, |
no test coverage detected