Skip to content
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

CandidateSet: Document Listener Port Connections #1852

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

teor2345
Copy link
Contributor

@teor2345 teor2345 commented Mar 5, 2021

Motivation

The current CandidateSet state diagram doesn't document how peer addresses from inbound connections get into the AddressBook.

Solution

Inbound connections on the Zcash protocol listener port perform a handshake. If the handshake is successful, it adds the peer to the AddressBook.

Change the CandidateSet description and diagram to document this missing state transition.

Review

@dconnolly and I discussed this change as part of the zebra-network security fixes. It is a medium priority.

Related Issues

Limit reconnection rate to each individual peer address #1848
Zebra should eventually stop trying to contact peers that always fail #1849
Limit the number of active peers in zebra-network #1850

Follow Up Work

Actually fix the security issues

Inbound connections on the Zcash protocol listener port
perform a handshake. If the handshake is successful, it
adds the peer to the AddressBook.
@teor2345 teor2345 added C-bug Category: This is a bug A-docs Area: Documentation P-Medium labels Mar 5, 2021
@teor2345 teor2345 added this to the 2021 Sprint 4 milestone Mar 5, 2021
@teor2345 teor2345 requested a review from dconnolly March 5, 2021 10:06
@teor2345 teor2345 self-assigned this Mar 5, 2021
@mpguerra mpguerra added the S-needs-triage Status: A bug report needs triage label Mar 5, 2021
@teor2345 teor2345 requested a review from a team March 8, 2021 02:08
@dconnolly dconnolly merged commit e50692b into main Mar 10, 2021
@dconnolly dconnolly deleted the listener-conn-address-book branch March 10, 2021 04:05
@mpguerra mpguerra removed the S-needs-triage Status: A bug report needs triage label Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants