diff --git a/.aegir.js b/.aegir.js index 97a84f2565..2e535ada4b 100644 --- a/.aegir.js +++ b/.aegir.js @@ -8,7 +8,7 @@ const ipfsdServer = IPFSFactory.createServer() const preloadNode = MockPreloadNode.createNode() module.exports = { - bundlesize: { maxSize: '691kB' }, + bundlesize: { maxSize: '694kB' }, webpack: { resolve: { mainFields: ['browser', 'main'], diff --git a/package.json b/package.json index a3f2f4b4ad..453155bd3c 100644 --- a/package.json +++ b/package.json @@ -127,7 +127,7 @@ "libp2p-delegated-content-routing": "^0.2.4", "libp2p-delegated-peer-routing": "^0.2.4", "libp2p-floodsub": "^0.17.0", - "libp2p-gossipsub": "^0.4.0", + "libp2p-gossipsub": "~0.0.4", "libp2p-kad-dht": "~0.15.3", "libp2p-keychain": "~0.4.2", "libp2p-mdns": "~0.12.0", diff --git a/src/core/runtime/libp2p-browser.js b/src/core/runtime/libp2p-browser.js index a5b21ba021..4ac3621525 100644 --- a/src/core/runtime/libp2p-browser.js +++ b/src/core/runtime/libp2p-browser.js @@ -24,8 +24,8 @@ class Node extends libp2p { const defaults = { switch: { - blacklistTTL: 2 * 60 * 1e3, // 2 minute base - blackListAttempts: 5, // back off 5 times + denyTTL: 2 * 60 * 1e3, // 2 minute base + denyAttempts: 5, // back off 5 times maxParallelDials: 100, maxColdCalls: 25, dialTimeout: 20e3 diff --git a/src/core/runtime/libp2p-nodejs.js b/src/core/runtime/libp2p-nodejs.js index da69cc76e1..aeb5111640 100644 --- a/src/core/runtime/libp2p-nodejs.js +++ b/src/core/runtime/libp2p-nodejs.js @@ -23,8 +23,8 @@ class Node extends libp2p { const defaults = { switch: { - blacklistTTL: 2 * 60 * 1e3, // 2 minute base - blackListAttempts: 5, // back off 5 times + denyTTL: 2 * 60 * 1e3, // 2 minute base + denyAttempts: 5, // back off 5 times maxParallelDials: 150, maxColdCalls: 50, dialTimeout: 10e3 // Be strict with dial time