servalproject / serval-dna

The Serval Project's core daemon that implements Distributed Numbering Architecture (DNA), MDP, VoMP, Rhizome, MeshMS, etc.
http://servalproject.org
Other
170 stars 81 forks source link

[RFC] Improve rhizome_sync.c (follower of #117) #119

Closed b0661 closed 7 years ago

b0661 commented 7 years ago

As noted by @lakeman in #117 annouce_cli_bundle add "... is not doing it's job when the rhizome store was empty; https://github.com/servalproject/serval-dna/blob/30aa1c16b85a8c8362403d92d9d62b698e461333/rhizome_sync.c#L255"

To make this work I changed rhizome_sync.c to work in my usage scenario. It now passes my own tests and also all of rhizomeprotocol.

Please give comments on the changed file: rhizome_sync.c.txt

I provide the whole file (not only diffs) because I think it is easier to understand.

I'm especially interested in:

Happy new year Bobby

b0661 commented 7 years ago

Sorry, have to rethink - just began to understand snyc_version>0.