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

Commit 19573fe

Browse files
vasco-santosjacobheun
authored andcommitted
chore: update gossipsub and libp2p
1 parent 566b800 commit 19573fe

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.aegir.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const ipfsdServer = IPFSFactory.createServer()
88
const preloadNode = MockPreloadNode.createNode()
99

1010
module.exports = {
11-
bundlesize: { maxSize: '691kB' },
11+
bundlesize: { maxSize: '694kB' },
1212
webpack: {
1313
resolve: {
1414
mainFields: ['browser', 'main'],

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"libp2p-delegated-content-routing": "^0.2.4",
128128
"libp2p-delegated-peer-routing": "^0.2.4",
129129
"libp2p-floodsub": "^0.17.0",
130-
"libp2p-gossipsub": "^0.4.0",
130+
"libp2p-gossipsub": "^0.0.4",
131131
"libp2p-kad-dht": "~0.15.3",
132132
"libp2p-keychain": "~0.4.2",
133133
"libp2p-mdns": "~0.12.0",

src/core/runtime/libp2p-browser.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class Node extends libp2p {
2424

2525
const defaults = {
2626
switch: {
27-
blacklistTTL: 2 * 60 * 1e3, // 2 minute base
28-
blackListAttempts: 5, // back off 5 times
27+
denyTTL: 2 * 60 * 1e3, // 2 minute base
28+
denyAttempts: 5, // back off 5 times
2929
maxParallelDials: 100,
3030
maxColdCalls: 25,
3131
dialTimeout: 20e3

src/core/runtime/libp2p-nodejs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class Node extends libp2p {
2323

2424
const defaults = {
2525
switch: {
26-
blacklistTTL: 2 * 60 * 1e3, // 2 minute base
27-
blackListAttempts: 5, // back off 5 times
26+
denyTTL: 2 * 60 * 1e3, // 2 minute base
27+
denyAttempts: 5, // back off 5 times
2828
maxParallelDials: 150,
2929
maxColdCalls: 50,
3030
dialTimeout: 10e3 // Be strict with dial time

0 commit comments

Comments
 (0)