hypercore 11.27.4 → 11.27.6

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.
@@ -603,6 +603,7 @@ class SessionState {
603
603
  }
604
604
 
605
605
  this.core.header.hints.recovering = 0
606
+ this.core.hintsChanged = true
606
607
 
607
608
  await this.mutex.lock()
608
609
  try {
@@ -1324,13 +1325,8 @@ function validateRecoveryPeers(peers, length) {
1324
1325
 
1325
1326
  for (const p of peers) {
1326
1327
  if (p.remoteLength > length) return false
1328
+ if (p.remoteLength === 0) return false
1327
1329
  }
1328
1330
 
1329
- let all = true
1330
-
1331
- for (const p of peers) {
1332
- if (p.remoteLength === 0) all = false
1333
- }
1334
-
1335
- return all
1331
+ return true
1336
1332
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "11.27.4",
3
+ "version": "11.27.6",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {