They have update with this timestamp: do we want it? */
| 633 | |
| 634 | /* They have update with this timestamp: do we want it? */ |
| 635 | static bool want_update(struct gossmap *gossmap, |
| 636 | u32 timestamp, |
| 637 | const struct gossmap_chan *chan, |
| 638 | int dir) |
| 639 | { |
| 640 | u32 our_timestamp; |
| 641 | |
| 642 | if (!gossmap_chan_set(chan, dir)) |
| 643 | return timestamp != 0; |
| 644 | |
| 645 | gossmap_chan_get_update_details(gossmap, chan, dir, &our_timestamp, |
| 646 | NULL, NULL, NULL, NULL, NULL, NULL, NULL); |
| 647 | if (timestamp <= our_timestamp) |
| 648 | return false; |
| 649 | |
| 650 | return true; |
| 651 | } |
| 652 | |
| 653 | /* They gave us timestamps. Do we want updated versions? */ |
| 654 | static void check_timestamps(struct seeker *seeker, |
no test coverage detected