mycognosist / solar

A minimal Secure Scuttlebutt replication node.
Other
22 stars 2 forks source link

Match on vector clock response and use negative request numbers #88

Closed mycognosist closed 8 months ago

mycognosist commented 8 months ago

This PR reintroduces deserialization code for vector clocks in MUXRPC responses, which had previously been erroneously considered redundant and removed, and uses negative request numbers in EBT-related MUXRPC responses.

Bidirectional replication is now working; tested between solar and Manyverse, and solar and Patchwork.

Note that live outbound updates from solar are not yet working. In other words, if you have an active EBT session and the local store of solar is updated - new messages of interest are not automatically sent out to connected peers. Instead, only a partial vector clock is sent. I am going to work on the live message sending next.

CC: @black-puppydog