Closed samparsky closed 5 years ago
There is an issue with the way isDisconnected is implemented. https://github.com/AdExNetwork/adex-market/blob/master/lib/getStatus.js#L54 it does a util.isDeepStrictEqual(h1, h2) but the signatures & timestamp on the messages would be different
hence the channel would return disconnected
An approach would be to get the leader propagated heartbeat messages from the follower and then do length comparison and check if the difference is within the allowed difference. And the same for the follower from the leader.
the idea is to check whether the follower has the leader's messages or vice versa
so comparing the signatures would be correct
There is an issue with the way isDisconnected is implemented. https://github.com/AdExNetwork/adex-market/blob/master/lib/getStatus.js#L54 it does a util.isDeepStrictEqual(h1, h2) but the signatures & timestamp on the messages would be different
hence the channel would return disconnected
An approach would be to get the leader propagated heartbeat messages from the follower and then do length comparison and check if the difference is within the allowed difference. And the same for the follower from the leader.