hypercore 11.33.5 → 11.34.0

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 CHANGED
@@ -1019,7 +1019,7 @@ class Peer {
1019
1019
  }
1020
1020
 
1021
1021
  let req = null
1022
- const batch = this.core.storage.read()
1022
+ const batch = this.core.storage.read(this.core.state.fork)
1023
1023
  try {
1024
1024
  req = await this._getProof(batch, msg, true)
1025
1025
  } catch (err) {
@@ -1051,7 +1051,7 @@ class Peer {
1051
1051
  }
1052
1052
 
1053
1053
  try {
1054
- const batch = this.core.storage.read()
1054
+ const batch = this.core.storage.read(this.core.state.fork)
1055
1055
 
1056
1056
  // TODO: could still be answerable if (index, fork) is an ancestor of the current fork
1057
1057
  const req =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "11.33.5",
3
+ "version": "11.34.0",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -54,7 +54,7 @@
54
54
  "hypercore-crypto": "^3.2.1",
55
55
  "hypercore-errors": "^1.5.0",
56
56
  "hypercore-id-encoding": "^1.2.0",
57
- "hypercore-storage": "^3.0.0",
57
+ "hypercore-storage": "^3.2.0",
58
58
  "is-options": "^1.0.1",
59
59
  "nanoassert": "^2.0.0",
60
60
  "protomux": "^3.5.0",