vacp2p / research

Thinking in code
MIT License
62 stars 4 forks source link

Add support for Lamport clocks #6

Open oskarth opened 4 years ago

oskarth commented 4 years ago

Currently https://specs.vac.dev/mdf.html has support for things like message dependencies.

However, it'd also be useful to support Lamport clocks here as well to get message ordering when gaps occur. See https://github.com/vacp2p/specs/pull/4#pullrequestreview-304377789

Currently in the Status app this is done inside the payload, which means app developers have to think about it. Ideally we help take care of this for them. See https://github.com/status-im/specs/blob/978c5b77bb45805df91a326132b4bc89671006d2/status-payloads-spec.md#clock-vs-timestamp-and-message-ordering and also https://github.com/status-im/specs/issues/57

cc @decanus

also fyi @cammellos

oskarth commented 3 years ago

@staheri14 wdyt of this capability re store/communities etc? might help