They have update with this timestamp: do we want it? */
| 581 | |
| 582 | /* They have update with this timestamp: do we want it? */ |
| 583 | static bool want_update(struct seeker *seeker, |
| 584 | u32 timestamp, const struct half_chan *hc) |
| 585 | { |
| 586 | if (!is_halfchan_defined(hc)) |
| 587 | return timestamp != 0; |
| 588 | |
| 589 | if (timestamp <= hc->bcast.timestamp) |
| 590 | return false; |
| 591 | |
| 592 | return !would_ratelimit_cupdate(seeker->daemon->rstate, hc, timestamp); |
| 593 | } |
| 594 | |
| 595 | /* They gave us timestamps. Do we want updated versions? */ |
| 596 | static void check_timestamps(struct seeker *seeker, |
no test coverage detected