Skip to content

Conversation

@SupernaviX
Copy link
Collaborator

@SupernaviX SupernaviX commented Nov 18, 2025

Description

Replaces all uses of UpstreamChainFetcher with PeerNetworkInterface.

The two modules serve similar purposes, the main difference is that PeerNetworkInterface can connect to multiple peers and switch between them as needed. PeerNetworkInterface is also better able to handle rollback, and is robust to upstream issues (if we get any errors from a peer, we reconnect to them later and switch to another peer)

Related Issue(s)

Followup to #204

How was this tested?

With great difficulty.

I ran Acropolis' sanchonet configuration using PeerNetworkInterface and UpstreamChainFetcher, and confirmed that I got the same series of errors and failures.

Checklist

  • My code builds and passes local tests
  • I added/updated tests for my changes, where applicable
  • I updated documentation (if applicable)
  • CI is green for this PR

Impact / Side effects

No negative impacts. Chainsync is more robust to network flakiness or logic errors now.

@SupernaviX SupernaviX merged commit ee73112 into main Nov 19, 2025
2 checks passed
@SupernaviX SupernaviX deleted the sg/remove-upstream-chain-fetcher branch November 19, 2025 17:50
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.

3 participants