Skip to content

Commit

Permalink
test: use that crypto puzzle! (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias authored Dec 1, 2017
1 parent ec956c1 commit f602cd9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
7 changes: 5 additions & 2 deletions .aegir.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ let node
const before = (done) => {
parallel([
(cb) => {
sigServer.start({ port: 15555 }, (err, server) => {
sigServer.start({
port: 15555
// cryptoChallenge: true TODO: needs https://github.com/libp2p/js-libp2p-webrtc-star/issues/128
}, (err, server) => {
if (err) { return cb(err) }
wrtcRendezvous = server
cb()
Expand All @@ -28,7 +31,7 @@ const before = (done) => {
port: 14444,
refreshPeerListIntervalMS: 1000,
strictMultiaddr: false,
cryptoChallenge: false
cryptoChallenge: true
}, (err, _server) => {
if (err) { return cb(err) }
wsRendezvous = _server
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
"libp2p-swarm": "~0.33.2",
"mafmt": "^3.0.2",
"multiaddr": "^3.0.1",
"peer-book": "~0.5.1",
"peer-id": "~0.10.2",
"peer-info": "~0.11.1"
"peer-book": "~0.5.2",
"peer-id": "~0.10.3",
"peer-info": "~0.11.3"
},
"devDependencies": {
"aegir": "^12.2.0",
Expand All @@ -60,9 +60,9 @@
"libp2p-secio": "~0.8.1",
"libp2p-spdy": "~0.11.0",
"libp2p-tcp": "~0.11.1",
"libp2p-webrtc-star": "~0.13.2",
"libp2p-webrtc-star": "~0.13.3",
"libp2p-websockets": "~0.10.4",
"libp2p-websocket-star": "~0.5.1",
"libp2p-websocket-star": "~0.7.1",
"libp2p-websocket-star-rendezvous": "~0.2.1",
"lodash.times": "^4.3.2",
"pre-commit": "^1.2.2",
Expand Down
8 changes: 4 additions & 4 deletions test/utils/bundle.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ function getMuxers (options) {
class Node extends libp2p {
constructor (peerInfo, peerBook, options) {
options = options || {}
const webRTCStar = new WebRTCStar()
const wsStar = new WebSocketStar()
const wrtcStar = new WebRTCStar({ id: peerInfo.id })
const wsStar = new WebSocketStar({ id: peerInfo.id })

const modules = {
transport: [
new WS(),
webRTCStar,
wrtcStar,
wsStar
],
connection: {
Expand All @@ -55,7 +55,7 @@ class Node extends libp2p {
}

if (options.webRTCStar) {
modules.discovery.push(webRTCStar.discovery)
modules.discovery.push(wrtcStar.discovery)
}

if (options.wsStar) {
Expand Down

0 comments on commit f602cd9

Please sign in to comment.