hypercore 11.27.5 → 11.27.7
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/lib/session-state.js +2 -1
- package/package.json +1 -1
package/lib/session-state.js
CHANGED
|
@@ -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,7 +1325,7 @@ function validateRecoveryPeers(peers, length) {
|
|
|
1324
1325
|
|
|
1325
1326
|
for (const p of peers) {
|
|
1326
1327
|
if (p.remoteLength > length) return false
|
|
1327
|
-
if (p.remoteLength === 0) return false
|
|
1328
|
+
if (p.remoteLength === 0 && !p.remoteSynced) return false
|
|
1328
1329
|
}
|
|
1329
1330
|
|
|
1330
1331
|
return true
|