Skip to content

fix(peer-store/memory-store): don't store remote address as listener #6010

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

Merged
merged 4 commits into from
Apr 28, 2025

Conversation

elenaf9
Copy link
Contributor

@elenaf9 elenaf9 commented Apr 26, 2025

Description

On connection establishment, only the dialer should store the remote's address in the peer store.
From the listener perspective, there is no information if the observed remote address is actually a listening address of the peer.

Notes & open questions

cc @dknopik

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

elenaf9 added 4 commits April 27, 2025 00:01
On connection establishment, only the dialer should store the remote's
address in the peer store. From the listener perspective, there is no
information if the observed remote address is actually a listening
address of the peer.
@dknopik
Copy link
Contributor

dknopik commented Apr 28, 2025

Ah, makes sense. LGTM, thanks!

Copy link
Member

@jxs jxs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Elena LGTM!

@mergify mergify bot merged commit 9016cbc into libp2p:master Apr 28, 2025
71 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants