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

net: remove discoverExternal() from the pool #212

Closed

Conversation

kilpatty
Copy link
Contributor

@kilpatty kilpatty commented Jul 2, 2019

This commit removes the discover external check in the pool. Currently
we already store all local addresses that are sent to us from peers in
the hostlist, so there is no reason to rely on an external service to
check for our local/external address. This was removed from bitcoin in
commit 845c86d.

EDIT: This is blocked by implementing the saving of local addresses via the remote property in the version packet.

This commit removes the discover external check in the pool. Currently
we already store all local addresses that are sent to us from peers in
the hostlist, so there is no reason to rely on an external service to
check for our local/external address. This was removed from bitcoin in
commit 845c86d.
@kilpatty
Copy link
Contributor Author

kilpatty commented Jul 2, 2019

ping @pinheadmz, going to add the "discover/discoverable" config in a different pr so its cleaner.

@codecov-io
Copy link

Codecov Report

Merging #212 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #212      +/-   ##
==========================================
+ Coverage   52.99%   53.01%   +0.02%     
==========================================
  Files         129      129              
  Lines       35773    35750      -23     
  Branches     6032     6027       -5     
==========================================
- Hits        18957    18952       -5     
+ Misses      16816    16798      -18
Impacted Files Coverage Δ
lib/net/pool.js 24.2% <ø> (+0.02%) ⬆️
lib/covenants/rules.js 73.04% <0%> (-0.15%) ⬇️
lib/script/script.js 58% <0%> (+0.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cc1ef7a...084d17b. Read the comment docs.

@pinheadmz
Copy link
Member

utACK.

This function hasn’t really worked in a while anyway:

bcoin-org/bdns#1

@tynes
Copy link
Contributor

tynes commented Jul 2, 2019

utACK.

Has there been discussion around this potentially leaking information about people running nodes? Probably don't want extra external API calls that the user is not necessarily aware of.

@pinheadmz
Copy link
Member

@tynes plenty of discussion in bitcoin core. Especially when it got funny: bitcoin/bitcoin#4679

@nodech nodech added net/p2p part of the codebase breaking-minor Backwards compatible - Release version cleanup improvement classification labels Dec 10, 2021
@nodech nodech self-assigned this Dec 13, 2021
@nodech nodech added the takeover Stale PRs. label Dec 13, 2021
@nodech nodech mentioned this pull request Feb 24, 2022
@nodech
Copy link
Contributor

nodech commented Apr 7, 2022

Merged in 6213460 from #692

@nodech nodech closed this Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-minor Backwards compatible - Release version cleanup improvement classification net/p2p part of the codebase takeover Stale PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants