-
Notifications
You must be signed in to change notification settings - Fork 106
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
teor2345
added
A-consensus
Area: Consensus rule updates
A-rust
Area: Updates to Rust code
NU-0 Overwinter
Network Upgrade: Overwinter specific tasks (Sprout after Overwinter)
C-enhancement
Category: This is an improvement
S-needs-triage
Status: A bug report needs triage
P-Medium
C-security
Category: Security issues
I-slow
Problems with performance or responsiveness
I-remote-node-overload
Zebra can overload other nodes on the network
A-network
Area: Network protocol updates or fixes
labels
Jun 8, 2021
The I replaced it with a peer-set based design. |
This was referenced Jun 14, 2021
teor2345
changed the title
Automatically disconnect from outdated peers after network upgrade activation
After network upgrade activation, close existing connections to outdated peers
Jun 14, 2021
3 tasks
3 tasks
3 tasks
teor2345
modified the milestones:
2021 Sprint 25 - Last Sprint of 2021,
2021 Sprint 24,
2021 Sprint 23
Nov 4, 2021
teor2345
removed
A-consensus
Area: Consensus rule updates
I-remote-node-overload
Zebra can overload other nodes on the network
labels
Nov 12, 2021
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: