hypercore 10.34.0 → 10.34.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/lib/replicator.js +1 -1
- package/package.json +1 -1
package/lib/replicator.js
CHANGED
|
@@ -1087,7 +1087,7 @@ class Peer {
|
|
|
1087
1087
|
return false
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
|
-
const end = Math.min(r.end === -1 ? this.remoteLength : r.end, this.remoteLength)
|
|
1090
|
+
const end = Math.min(this.core.tree.length, Math.min(r.end === -1 ? this.remoteLength : r.end, this.remoteLength))
|
|
1091
1091
|
if (end <= r.start || fork !== this.remoteFork) return false
|
|
1092
1092
|
|
|
1093
1093
|
const len = end - r.start
|