-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After network upgrade activation, close existing connections to outdated peers #2262
Labels
A-network
Area: Network protocol updates or fixes
A-rust
Area: Updates to Rust code
C-enhancement
Category: This is an improvement
C-security
Category: Security issues
I-slow
Problems with performance or responsiveness
NU-0 Overwinter
Network Upgrade: Overwinter specific tasks (Sprout after Overwinter)
Milestone
Comments
The I replaced it with a peer-set based design. |
This was referenced Jun 14, 2021
3 tasks
3 tasks
3 tasks
This was referenced Nov 19, 2021
3 tasks
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-network
Area: Network protocol updates or fixes
A-rust
Area: Updates to Rust code
C-enhancement
Category: This is an improvement
C-security
Category: Security issues
I-slow
Problems with performance or responsiveness
NU-0 Overwinter
Network Upgrade: Overwinter specific tasks (Sprout after Overwinter)
Motivation
zcashd
automatically disconnects from outdated peers after a network upgrade activates.Specifications
Original specification: ZIP 201: Network Peer Management for Overwinter
Since this is a network protocol specification, Zebra is free to adopt any compatible design.
Draft Zebra behaviour: ZIP 252: Deployment of the NU5 Network Upgrade - Support in Zebra
Solution
Peer Set:
ReadyService
type containing aDiscover::Service
peer serviceReadyService
andUnreadyService
min_peer_version
increasesPeerSet::poll_ready
Documentation:
Testing:
Alternatives
We could rely on natural connection churn to get rid of these peers. But it doesn't provide any guarantees.
We could do #2813 after NU5 mainnet activation, but it would only apply to updated Zebra instances.
Related Work
Depends on #1334: Automatically reject new connections from outdated peers after network upgrade activation
The text was updated successfully, but these errors were encountered: