Send full updates after old last seen updates.
authorArik Sosman <git@arik.io>
Tue, 29 Aug 2023 01:01:03 +0000 (18:01 -0700)
committerArik Sosman <git@arik.io>
Wed, 6 Sep 2023 20:21:51 +0000 (13:21 -0700)
commitcbf7897549f540ca3017dced125d9b1202b61dad
treeea1f3f9c340a4a9e01981983b2ecab376181dd79
parent858c7f23cee5fd36b5fa77232412d0cc106b1f76
Send full updates after old last seen updates.

Previously, whenever we saw that there was a previous update that a
client would have seen, we simply calculated the delta set based on
which properties have changed, and would most likely send an
incremental update set (excepting the case of a new or newly sent
announcement, in which case all sent updates are full).

However, if the last seen update was old, and there's a chance that
a user may have run RGS since, it is possible that due to the
7-day-backdating-mechanism included on the client, the reference
update would no longer be present.

To fix that, anytime we see that a last seen update is more than six
days old, we automatically include a full update.
src/lookup.rs
src/serialization.rs