earthstar-project / earthstar

Storage for private, distributed, offline-first applications.
https://earthstar-project.org
GNU Lesser General Public License v3.0
624 stars 18 forks source link

Fix issue causing peers to think they're in sync #275

Closed sgwilym closed 1 year ago

sgwilym commented 1 year ago

What's the problem you solved?

The way hashes were being calculated by HaveEntryKeeper only took into account the path and author, and not the timestamp, meaning that two peers could think they were in sync when they weren't.

What solution are you recommending?

Include the timestamp in how the hash is calculated.