textileio / js-threaddb

This project has been moved to https://github.com/textileio/js-textile
https://github.com/textileio/js-textile
MIT License
14 stars 1 forks source link

Track "head" of remote updates #12

Open carsonfarmer opened 4 years ago

carsonfarmer commented 4 years ago

We need some way to know if our local state is in sync with the remote state. A nice way to do this is to simply track the latest "head" of the remote that we know about. Something like the hash of latest remote thread record. This isn't yet exposed in any nice way on the go side, so this ticket would require some updates over there as well. Otherwise, we have to query the remote thread to find out which instances we're missing/have to push.