-
Notifications
You must be signed in to change notification settings - Fork 440
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
Change from ipfs to p2p protocol #315
Changes from 4 commits
f2d9e04
e885d57
1e3d079
ba993d0
e8ddaef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,7 +117,7 @@ describe('circuit relay', () => { | |
// set up node with TCP and listening on relay1 | ||
(cb) => setupNode([ | ||
'/ip4/0.0.0.0/tcp/0', | ||
`/ipfs/${relayNode1.peerInfo.id.toB58String()}/p2p-circuit` | ||
`/p2p/${relayNode1.peerInfo.id.toB58String()}/p2p-circuit` | ||
], { | ||
config: { | ||
relay: { | ||
|
@@ -131,7 +131,7 @@ describe('circuit relay', () => { | |
// set up node with TCP and listening on relay2 over TCP transport | ||
(cb) => setupNode([ | ||
'/ip4/0.0.0.0/tcp/0', | ||
`/ip4/0.0.0.0/tcp/0/ipfs/${relayNode2.peerInfo.id.toB58String()}/p2p-circuit` | ||
`/ip4/0.0.0.0/tcp/0/p2p/${relayNode2.peerInfo.id.toB58String()}/p2p-circuit` | ||
], { | ||
config: { | ||
relay: { | ||
|
@@ -195,7 +195,7 @@ describe('circuit relay', () => { | |
|
||
tryEcho(conn, () => { | ||
const addr = multiaddr(handlerSpies[0].args[2][0].dstPeer.addrs[0]).toString() | ||
expect(addr).to.equal(`/ipfs/${nodeTCP1.peerInfo.id.toB58String()}`) | ||
expect(addr).to.equal(`/p2p/${nodeTCP1.peerInfo.id.toB58String()}`) | ||
done() | ||
}) | ||
}) | ||
|
@@ -208,7 +208,7 @@ describe('circuit relay', () => { | |
|
||
tryEcho(conn, () => { | ||
const addr = multiaddr(handlerSpies[1].args[2][0].dstPeer.addrs[0]).toString() | ||
expect(addr).to.equal(`/ipfs/${nodeTCP2.peerInfo.id.toB58String()}`) | ||
expect(addr).to.equal(`/p2p/${nodeTCP2.peerInfo.id.toB58String()}`) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
done() | ||
}) | ||
}) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,7 +191,7 @@ describe('.contentRouting', () => { | |
// mock the swarm connect | ||
.post('/api/v0/swarm/connect') | ||
.query({ | ||
arg: `/ip4/0.0.0.0/tcp/60194/p2p-circuit/ipfs/${nodeA.peerInfo.id.toB58String()}`, | ||
arg: `/ip4/0.0.0.0/tcp/60194/p2p-circuit/p2p/${nodeA.peerInfo.id.toB58String()}`, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will need to stay as |
||
'stream-channels': true | ||
}) | ||
.reply(200, { | ||
|
@@ -222,7 +222,7 @@ describe('.contentRouting', () => { | |
// mock the swarm connect | ||
.post('/api/v0/swarm/connect') | ||
.query({ | ||
arg: `/ip4/0.0.0.0/tcp/60194/p2p-circuit/ipfs/${nodeA.peerInfo.id.toB58String()}`, | ||
arg: `/ip4/0.0.0.0/tcp/60194/p2p-circuit/p2p/${nodeA.peerInfo.id.toB58String()}`, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will need to stay as |
||
'stream-channels': true | ||
}) | ||
.reply(502, 'Bad Gateway', ['Content-Type', 'application/json']) | ||
|
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.
/ipfs/
is expected, not/p2p/