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

Use ModeClient in libp2p DHT in case of --client_mode #374

Merged
merged 2 commits into from
Sep 1, 2021

Conversation

borzunov
Copy link
Member

@borzunov borzunov commented Sep 1, 2021

See docs for the DHT modes.

I hypothesize that having ModeServer even on unreachable nodes could harm various libp2p features such as the NAT traversal.

@borzunov borzunov changed the title Change default libp2p DHT mode from ModeServer to ModeAuto Use ModeClient in libp2p DHT in case of --client_mode Sep 1, 2021
@codecov
Copy link

codecov bot commented Sep 1, 2021

Codecov Report

Merging #374 (c61c9d5) into master (a504a07) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #374      +/-   ##
==========================================
- Coverage   83.44%   83.38%   -0.06%     
==========================================
  Files          66       66              
  Lines        6124     6126       +2     
==========================================
- Hits         5110     5108       -2     
- Misses       1014     1018       +4     
Impacted Files Coverage Δ
hivemind/p2p/p2p_daemon.py 94.38% <ø> (ø)
hivemind/dht/node.py 91.44% <100.00%> (-1.16%) ⬇️
hivemind/averaging/matchmaking.py 84.06% <0.00%> (+0.31%) ⬆️

@borzunov borzunov merged commit 8a56d34 into master Sep 1, 2021
@borzunov borzunov deleted the dht-mode-auto branch September 1, 2021 17:53
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