Skip to content

feat: implement anti-entropy pull protocol in run_gossip_loop (#83) - #87

Open
ZuLu0890 wants to merge 2 commits into
StellarConduit:mainfrom
ZuLu0890:feat/issue-83-anti-entropy-pull
Open

feat: implement anti-entropy pull protocol in run_gossip_loop (#83)#87
ZuLu0890 wants to merge 2 commits into
StellarConduit:mainfrom
ZuLu0890:feat/issue-83-anti-entropy-pull

Conversation

@ZuLu0890

@ZuLu0890 ZuLu0890 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor
  • Add GossipState parameter (Arc<Mutex>) to run_gossip_loop
  • Replace _transport_manager no-op with active transport_manager usage
  • Every 30s anti-entropy tick: pick one random active peer, send a SyncRequest containing known message-ID prefixes, await SyncResponse (10s timeout), and merge missing envelopes via handle_sync_response
  • Update all existing test call sites to pass the new state arg
  • Add 5 tests covering: empty peer list, sync request contents, response merging, no-duplicate insertion, and state persistence across loop abort
    closes Implement Anti-Entropy Pull Protocol in run_gossip_loop #83

…rConduit#83)

- Add GossipState parameter (Arc<Mutex<GossipState>>) to run_gossip_loop
- Replace _transport_manager no-op with active transport_manager usage
- Every 30s anti-entropy tick: pick one random active peer, send a
  SyncRequest containing known message-ID prefixes, await SyncResponse
  (10s timeout), and merge missing envelopes via handle_sync_response
- Update all existing test call sites to pass the new state arg
- Add 5 tests covering: empty peer list, sync request contents,
  response merging, no-duplicate insertion, and state persistence
  across loop abort
@Mrwicks00

Copy link
Copy Markdown
Contributor

@ZuLu0890 fix cicd error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Anti-Entropy Pull Protocol in run_gossip_loop

2 participants