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

feat: add confidence in observed addresses #881

Closed
wants to merge 3 commits into from

Conversation

achingbrain
Copy link
Member

Require at least four peers to report the same observed address before
we start returning it as part of node.multiaddrs.

In order to not let the list of observed addresses grow forever we
enforce a 10 minute timeout, that is for any observed address, at least
four different peers have to report it to us within ten minutes otherwise
we discard the address.

The number of peers and timeout are both configurable.

Require at least four peers to report the same observed address before
we start returning it as part of `node.multiaddrs`.

In order to not let the list of observed addresses grow forever we
enforce a 10 minute timeout, that is for any observed address, at least
four different peers have to report it to us within ten minutes otherwise
we discard the address.

The number of peers and timeout are both configurable.
src/address-manager/index.js Outdated Show resolved Hide resolved
@vasco-santos
Copy link
Member

We will merge #882 and think more about how to add confidence to the observed addresses

@lidel
Copy link
Member

lidel commented Apr 12, 2021

Closing for now, can be picked up as part of #703 when that gets prioritized again.

@lidel lidel closed this Apr 12, 2021
@achingbrain achingbrain deleted the feat/observed-addr-confidence branch May 18, 2023 13:40
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.

3 participants