-
Notifications
You must be signed in to change notification settings - Fork 175
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
Support circuit relay v2, add tests #537
Conversation
Vahe1994
commented
Dec 22, 2022
•
edited by justheuristic
Loading
edited by justheuristic
- switched to p2pd version 0.3.16
- added support for Circuit Relay V2 in all hivemind protocols
- added an option no_listen=False for testing purposes (hivemind.p2p.p2p_daemon)
- added a test that checks if a peer can connect to another peer through circuit relay
related: #536 |
Codecov Report
@@ Coverage Diff @@
## master #537 +/- ##
==========================================
- Coverage 76.00% 75.99% -0.01%
==========================================
Files 81 81
Lines 7964 7966 +2
==========================================
+ Hits 6053 6054 +1
- Misses 1911 1912 +1
|
note: failed docker push is not an urgent issue and can be resolved when we finalize this PR |
2. (Partly)Wrote test for automatic checking relays(need fix, under NAT can't perform testing)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we're testing, we might as well listen to localhost
tests/test_relays.py
Outdated
|
||
dht_third_peer = hivemind.DHT( | ||
initial_peers=initial_peers, | ||
host_maddrs=["/ip4/0.0.0.0/tcp/0"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
host_maddrs=["/ip4/0.0.0.0/tcp/0"], | |
host_maddrs=[], |
no_listen means no host_maddrs
2. Added loop for relays 3. Changed relays parameters
2. Fixed autorelay test sleep and correct order of dht peers and added more sleep time beetween peers
- switched to p2pd version 0.3.16 - added support for Circuit Relay V2 in all hivemind protocols - added an option no_listen=False for testing purposes (hivemind.p2p.p2p_daemon) - added a test that checks if a peer can connect to another peer through circuit relay Co-authored-by: justheuristic <[email protected]> (cherry picked from commit 9d89a7b)