fix: Fix missing entries when syncing multiple nodes (#58)

This commit is contained in:
Marcelo Mendonça Soares 2026-06-02 01:42:34 -03:00 • committed by GitHub
commit 60cca9cc85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,5 +3,10 @@
class: CrdtSyncSinceHlc
extends: CrdtSyncStreamEvent
fields:
### The last HLC timestamp that the sender has received from the other peer.
lastSyncFromPeer: Hlc
### Per-node checkpoints that describe which changes the sender already has.
###
### Each checkpoint is an [Hlc] whose `nodeId` is the source node being
### checkpointed. The receiver uses this list to compute a diff without
### relying on a single global HLC, which would miss concurrent changes from
### nodes unknown at the time of the previous sync.
nodeCheckpoints: List<Hlc>