why is a newly joined peer not receiving recently gossiped messages. #3918
-
i have modified the gossip default configuration to ensure that they keep gossiping messages in case one peer encounter a network partition or a newly joined peer should get at least the messages up to 500 seconds back, since each heartbeat is one second:
however its not working, any idea why? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Those functions largely deals with the cache, which would reduce or prevent duplicate messages from being sent or received during the time it is in cache. I dont recall gossip intended design allowing sending previous messages sent to new peers that join, but that may fall on you to implement such a sync mechanism, which was discussed a little at #3717 |
Beta Was this translation helpful? Give feedback.
No, if a peer is not part of the mesh at the time the message is sent, it will never receive it. If you want a newly connected peer to "catch-up" with the message being sent, you will need to implement your own sync mechanism by directly connecting to other peers and download the messages.