hypercore 10.0.0-alpha.18 → 10.0.0-alpha.19
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/merkle-tree.js +2 -0
- package/package.json +2 -2
package/lib/merkle-tree.js
CHANGED
|
@@ -247,6 +247,8 @@ class ReorgBatch extends MerkleTreeBatch {
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
_updateDiffRoot (diff) {
|
|
250
|
+
if (this.want === null) return true
|
|
251
|
+
|
|
250
252
|
const spans = flat.spans(diff.index)
|
|
251
253
|
const start = spans[0] / 2
|
|
252
254
|
const end = Math.min(this.treeLength, spans[1] / 2 + 1)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hypercore",
|
|
3
|
-
"version": "10.0.0-alpha.
|
|
3
|
+
"version": "10.0.0-alpha.19",
|
|
4
4
|
"description": "Hypercore 10",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"xache": "^1.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"brittle": "^
|
|
52
|
+
"brittle": "^2.0.0",
|
|
53
53
|
"hyperswarm": "next",
|
|
54
54
|
"random-access-memory": "^3.1.2",
|
|
55
55
|
"standard": "^16.0.3",
|