Closed chirino closed 6 months ago
Trying to avoid doing too many re-sync on every connect to a peer, but I think we could end up in scenarios where you have peers A, B, C, D and peer A and B start up and connect and sync, then C and D start up and connect and sync, then C,D and A,B connect and don't sync anymore as they thought they were already synced with the cluster.
Switched to a more simplified strategy of syncing with every peer session. It should work better in the face of complex network partitions.
This likely needs more thought put into it. A peer only resyncs when it goes from having zero active connections to 1 active connection.