-
Notifications
You must be signed in to change notification settings - Fork 448
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
WIP - feat: Circuit Relay #116
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
ad1e6ff
feat: adding circuit relaying
dryajov 3cc9673
feat: new super simplified API
daviddias 58e4f1a
feat: append peer id to multiaddr if not there
daviddias 89c3f44
[WIP] Awesome DHT (#86)
dignifiedquire afd31be
feat: rework circuit relay for protobufs
dryajov 7acdc96
feat: circuit loading and tests
dryajov 485eebd
fix: clean up _getPeerInfo to work with /p2p-circuit
dryajov 9477389
wip: tests cleaup
dryajov cc28fd7
test: clean up
dryajov 0c06829
wip
dryajov 973e006
fix: bringing back test reworks and new aegir
dryajov 7da79d5
test: group tests
dryajov b35dc9f
test: clean up
dryajov 9323ec6
test: adjust test
dryajov 44252de
fix: use getPeerId to determine if the ipfs fragment is missing
dryajov 722bf1f
feat: adding circuit relaying
dryajov f032652
feat: circuit loading and tests
dryajov acdd40b
test: clean up
dryajov 13ea93c
wip
dryajov b68c6cf
feat: upgrade to latest aegir
dryajov 6f8b324
fix: removing unused tests
dryajov e3be331
feat: cleanup tests
dryajov decf7c2
fix: create node defautl options
dryajov 7e4b850
chore: upgrade swarm to latest version
dryajov c7d7ab3
fix: updated aegir and adjust timeouts
dryajov dd2df80
feat: more timeouts
dryajov fa9578d
chore: updating deps
dryajov 1830571
fix: circle ci builds
dryajov e3b04a4
test: timeouts
dryajov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,16 +4,16 @@ | |
"description": "JavaScript base class for libp2p bundles", | ||
"main": "src/index.js", | ||
"scripts": { | ||
"test": "gulp test", | ||
"test:node": "gulp test:node", | ||
"test:browser": "gulp test:browser --dom", | ||
"release": "gulp release --dom", | ||
"release-minor": "gulp release --type minor --dom", | ||
"release-major": "gulp release --type major --dom", | ||
"build": "gulp build", | ||
"lint": "aegir-lint", | ||
"coverage": "aegir-coverage", | ||
"coverage-publish": "aegir-coverage publish" | ||
"lint": "aegir lint", | ||
"build": "aegir build", | ||
"test": "aegir test --target node --target browser --no-parallel", | ||
"test:node": "aegir test --target node --no-parallel", | ||
"test:browser": "aegir test --target browser --no-parallel", | ||
"release": "aegir test release --target node --target browser --no-parallel", | ||
"release-minor": "aegir release --type minor --target node --target browser --no-parallel", | ||
"release-major": "aegir release --type major --target node --target browser --no-parallel", | ||
"coverage": "aegir coverage", | ||
"coverage-publish": "aegir coverage --provider coveralls" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
@@ -39,39 +39,40 @@ | |
"dependencies": { | ||
"async": "^2.5.0", | ||
"libp2p-ping": "~0.6.0", | ||
"libp2p-swarm": "~0.32.4", | ||
"mafmt": "^3.0.1", | ||
"multiaddr": "^3.0.1", | ||
"peer-book": "~0.5.1", | ||
"peer-id": "~0.10.1", | ||
"libp2p-swarm": "~0.33.0", | ||
"mafmt": "^3.0.2", | ||
"multiaddr": "^3.0.0", | ||
"peer-book": "~0.5.0", | ||
"peer-id": "~0.10.0", | ||
"peer-info": "~0.11.0" | ||
}, | ||
"devDependencies": { | ||
"aegir": "^11.0.2", | ||
"aegir": "^12.1.0", | ||
"chai": "^4.1.2", | ||
"dirty-chai": "^2.0.1", | ||
"cids": "~0.5.1", | ||
"libp2p-kad-dht": "~0.5.1", | ||
"libp2p-mdns": "~0.9.1", | ||
"dirty-chai": "^2.0.1", | ||
"electron-webrtc": "^0.3.0", | ||
"libp2p-circuit": "^0.1.2", | ||
"libp2p-kad-dht": "~0.5.0", | ||
"libp2p-mdns": "~0.9.0", | ||
"libp2p-multiplex": "~0.5.0", | ||
"libp2p-railing": "~0.7.1", | ||
"libp2p-secio": "~0.8.1", | ||
"libp2p-railing": "~0.7.0", | ||
"libp2p-secio": "~0.8.0", | ||
"libp2p-spdy": "~0.11.0", | ||
"libp2p-tcp": "~0.11.0", | ||
"libp2p-webrtc-star": "~0.13.2", | ||
"libp2p-websockets": "~0.10.1", | ||
"libp2p-tcp": "^0.11.0", | ||
"libp2p-webrtc-star": "^0.13.2", | ||
"libp2p-websockets": "^0.10.4", | ||
"lodash.times": "^4.3.2", | ||
"pre-commit": "^1.2.2", | ||
"pull-goodbye": "0.0.2", | ||
"pull-serializer": "^0.3.2", | ||
"pull-stream": "^3.6.1", | ||
"pull-stream": "^3.6.0", | ||
"safe-buffer": "^5.1.1", | ||
"electron-webrtc": "^0.3.0", | ||
"sinon": "^2.3.6", | ||
"wrtc": "0.0.62" | ||
}, | ||
"contributors": [ | ||
"Chris Bratlien <[email protected]>", | ||
"Daijiro Wachi <[email protected]>", | ||
"David Dias <[email protected]>", | ||
"Elven <[email protected]>", | ||
"Friedel Ziegelmayer <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This should be enabled by an option and not by default
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.
this is being handled inside the
enableCircuitRelay
- https://github.com/libp2p/js-libp2p-swarm/blob/master/src/connection.js#L100.