hypercore 11.8.2 → 11.8.3

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/core.js CHANGED
@@ -170,7 +170,6 @@ module.exports = class Core {
170
170
  manifest,
171
171
  keyPair: keyPair ? { publicKey: keyPair.publicKey, secretKey: keyPair.secretKey || null } : null,
172
172
  frozen: false,
173
- userData: [],
174
173
  tree: {
175
174
  fork: 0,
176
175
  length: 0,
@@ -254,10 +253,6 @@ module.exports = class Core {
254
253
  await tx.flush()
255
254
  }
256
255
 
257
- for await (const { key, value } of storage.createUserDataStream()) {
258
- header.userData.push({ key, value: unslab(value) })
259
- }
260
-
261
256
  const len = bitfield.findFirst(false, header.hints.contiguousLength)
262
257
  if (header.hints.contiguousLength !== len) {
263
258
  header.hints.contiguousLength = len
@@ -797,7 +792,6 @@ function parseHeader (info) {
797
792
  manifest: info.manifest,
798
793
  external: null,
799
794
  keyPair: info.keyPair,
800
- userData: [],
801
795
  tree: info.head || getDefaultTree(),
802
796
  hints: {
803
797
  reorgs: [],
package/lib/replicator.js CHANGED
@@ -702,6 +702,7 @@ class Peer {
702
702
  }
703
703
 
704
704
  block = batch.getBlock(index)
705
+ block.catch(noop)
705
706
  }
706
707
 
707
708
  const manifest = (msg.manifest && !this.core.compat) ? this.core.header.manifest : null
@@ -2676,3 +2677,5 @@ function incrementRx (stats1, stats2) {
2676
2677
  stats1.rx++
2677
2678
  stats2.rx++
2678
2679
  }
2680
+
2681
+ function noop () {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "11.8.2",
3
+ "version": "11.8.3",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {