If we don't know, we assume it's good */
| 381 | |
| 382 | /* If we don't know, we assume it's good */ |
| 383 | static u32 get_timestamp(struct gossmap *gossmap, |
| 384 | const struct gossmap_chan *chan, |
| 385 | int dir) |
| 386 | { |
| 387 | u32 timestamp; |
| 388 | |
| 389 | if (!gossmap_chan_set(chan, dir)) |
| 390 | return UINT32_MAX; |
| 391 | |
| 392 | gossmap_chan_get_update_details(gossmap, chan, dir, |
| 393 | ×tamp, |
| 394 | NULL, NULL, NULL, NULL, NULL, NULL, NULL); |
| 395 | return timestamp; |
| 396 | } |
| 397 | |
| 398 | static bool channel_already_dying(const struct chan_dying dying_channels[], |
| 399 | struct short_channel_id scid) |
no test coverage detected