You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"denylist" more adequately describes what this list is for.
BREAKING CHANGE: Constructor options `blacklistTTL` and `blackListAttempts` have been renamed to `denyTTL` and `denyAttempts`. The error code from errors thrown when dial is currently denied has changed from `ERR_BLACKLISTED` to `ERR_DENIED`.
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-5
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
### Bug Fixes
6
6
7
-
* clear blacklist for peer when connection is established ([#340](https://github.com/libp2p/js-libp2p-switch/issues/340)) ([f306cba](https://github.com/libp2p/js-libp2p-switch/commit/f306cba))
7
+
* clear denylist for peer when connection is established ([#340](https://github.com/libp2p/js-libp2p-switch/issues/340)) ([f306cba](https://github.com/libp2p/js-libp2p-switch/commit/f306cba))
8
8
* dont blindly add observed addresses to our list ([#337](https://github.com/libp2p/js-libp2p-switch/issues/337)) ([f879cfc](https://github.com/libp2p/js-libp2p-switch/commit/f879cfc))
9
9
10
10
@@ -72,7 +72,7 @@
72
72
73
73
### Bug Fixes
74
74
75
-
* dont blacklist good peers ([#319](https://github.com/libp2p/js-libp2p-switch/issues/319)) ([f31663f](https://github.com/libp2p/js-libp2p-switch/commit/f31663f))
75
+
* dont denylist good peers ([#319](https://github.com/libp2p/js-libp2p-switch/issues/319)) ([f31663f](https://github.com/libp2p/js-libp2p-switch/commit/f31663f))
76
76
* revert to try each ([#320](https://github.com/libp2p/js-libp2p-switch/issues/320)) ([805d1ad](https://github.com/libp2p/js-libp2p-switch/commit/805d1ad))
77
77
78
78
@@ -1067,6 +1067,3 @@ using the connection returned via the callback.
If defined, `options` should be an object with the following keys and respective values:
64
64
65
-
-`blacklistTTL`: - number of ms a peer should not be dialable to after it errors. Each successive blacklisting will increase the ttl from the base value. Defaults to 5 minutes
66
-
-`blackListAttempts`: - number of blacklists before a peer
67
-
is permanently blacklisted. Defaults to 5.
65
+
-`denyTTL`: - number of ms a peer should not be dialable to after it errors. Each successive deny will increase the TTL from the base value. Defaults to 5 minutes
66
+
-`denyAttempts`: - number of times a peer can be denied before they are permanently denied. Defaults to 5.
68
67
-`maxParallelDials`: - number of concurrent dials the switch should allow. Defaults to `100`
69
68
-`maxColdCalls`: - number of queued cold calls that are allowed. Defaults to `50`
70
69
-`dialTimeout`: - number of ms a dial to a peer should be allowed to run. Defaults to `30000` (30 seconds)
0 commit comments