Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
chore: update gossipsub and libp2p
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored and jacobheun committed Aug 9, 2019
1 parent 566b800 commit e99c57d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .aegir.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/core/runtime/libp2p-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/core/runtime/libp2p-nodejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e99c57d

Please sign in to comment.