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

fix: Immediately announce onion address to swarm #32

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

binarybaron
Copy link
Contributor

@binarybaron binarybaron commented Dec 3, 2024

Depends on: #31

Instead of waiting for the onion service to be fully reachable (registered at intro points and hs_dirs), we announce the address immediately.

We announce the address immediately to the swarm even though we technically cannot guarantee that the address is reachable yet from the outside. We might not have registered the onion service fully yet (introduction points, hsdir, ...)
However, we need to announce it as soon as possible because otherwise libp2p might not poll the listener again and we will not be able to announce it later.

umgefahren and others added 3 commits November 29, 2024 10:08
Instead of waiting for the onion service to be fully reachable (registered at intro points and hs_dirs), we announce the address immediately.
This fixes an issue where libp2p would not poll our transport against after we did not announce an address on the first poll.
@binarybaron binarybaron changed the title fix/announce address immed fix: Immediately announce onion address to swarm Dec 3, 2024
@binarybaron binarybaron marked this pull request as ready for review December 3, 2024 00: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.

2 participants