Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Disovered Addresses Event #171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aarshkshah1992
Copy link
Contributor

For libp2p/go-libp2p#1012.

AutoNAT PR at libp2p/go-libp2p-autonat#98.

As discussed with @Stebalien , sub-systems that discover new dialable addresses will emit this event which will then be consumed by AutoNAT to determine if they are reachable.


// EvtDiscoveredAddresses should be emitted when a new dialable address is discovered by a system.
// This dialable address would then be verified by a system such as AutoNAT.
type EvtDiscoveredAddresses struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we have each event provide a single discovered address?
anyone watching for new addresses will already be wanting to aggregate since addresses may arrive at the same time (e.g. startup) form multiple sources. We can probably reduce the second aggregation here for simplicity

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@willscott But imagine a scenario wherein the "default route" changes and we want to send the new interface addresses. Are you saying we'd send two events here for each new interface address ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer getting two events, since the default route changing also likely will occur at the same time as different externally discovered and different netroute events.

@BigLep
Copy link

BigLep commented Oct 24, 2021

@aarshkshah1992 : what are the next steps for this? I'm converting to draft for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants