blind-peer 3.7.0 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -213,6 +213,7 @@ class BlindPeer extends ReadyResource {
|
|
|
213
213
|
ipBanListKeys = [],
|
|
214
214
|
banTimeout = 16_000,
|
|
215
215
|
port,
|
|
216
|
+
bootstrap = null,
|
|
216
217
|
announcingInterval = 100,
|
|
217
218
|
wakeupGcTickTime = null,
|
|
218
219
|
replicationLagThreshold = 100,
|
|
@@ -230,6 +231,7 @@ class BlindPeer extends ReadyResource {
|
|
|
230
231
|
this.banTimeout = banTimeout
|
|
231
232
|
|
|
232
233
|
this._port = port || 0
|
|
234
|
+
this.bootstrap = bootstrap
|
|
233
235
|
this.announcingInterval = announcingInterval
|
|
234
236
|
this.trustedPubKeys = new Set()
|
|
235
237
|
for (const k of trustedPubKeys || []) this.addTrustedPubKey(k)
|
|
@@ -341,7 +343,7 @@ class BlindPeer extends ReadyResource {
|
|
|
341
343
|
this.store.watch(this._oncoreopen.bind(this))
|
|
342
344
|
|
|
343
345
|
if (this.swarm === null) {
|
|
344
|
-
const swarmOpts = { keyPair: this.db.swarmingKeyPair }
|
|
346
|
+
const swarmOpts = { keyPair: this.db.swarmingKeyPair, bootstrap: this.bootstrap }
|
|
345
347
|
if (this._port) {
|
|
346
348
|
swarmOpts.port = typeof this._port === 'number' ? [this._port, this._port + 64] : this._port
|
|
347
349
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blind-peer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"description": "Blind peers help keep hypercores available",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"b4a": "^1.6.7",
|
|
9
9
|
"blind-peer-encodings": "^3.3.0",
|
|
10
10
|
"blind-peer-muxer": "^1.0.0",
|
|
11
|
-
"compact-encoding": "^
|
|
11
|
+
"compact-encoding": "^3.0.0",
|
|
12
12
|
"corestore": "^7.4.4",
|
|
13
13
|
"hypercore": "^11.26.0",
|
|
14
14
|
"hypercore-crypto": "^3.5.0",
|