hypercore 11.21.1 → 11.21.2
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 +7 -2
- package/package.json +1 -1
package/lib/replicator.js
CHANGED
|
@@ -921,10 +921,15 @@ class Peer {
|
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
923
|
|
|
924
|
+
let req = null
|
|
924
925
|
const batch = this.core.storage.read()
|
|
925
|
-
|
|
926
|
-
|
|
926
|
+
try {
|
|
927
|
+
req = await this._getProof(batch, msg, true)
|
|
928
|
+
} catch {
|
|
929
|
+
return
|
|
930
|
+
}
|
|
927
931
|
|
|
932
|
+
if (req === null) return
|
|
928
933
|
batch.tryFlush()
|
|
929
934
|
|
|
930
935
|
await this._fulfillRequest(req, true)
|