hypercore 10.30.2 → 10.30.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 +5 -1
- package/package.json +1 -1
package/lib/core.js
CHANGED
|
@@ -707,7 +707,11 @@ module.exports = class Core {
|
|
|
707
707
|
|
|
708
708
|
const batch = this.tree.verifyFullyRemote(proof)
|
|
709
709
|
|
|
710
|
-
|
|
710
|
+
try {
|
|
711
|
+
this._verifyBatchUpgrade(batch, proof.manifest)
|
|
712
|
+
} catch {
|
|
713
|
+
return true
|
|
714
|
+
}
|
|
711
715
|
|
|
712
716
|
const remoteTreeHash = this.crypto.tree(proof.upgrade.nodes)
|
|
713
717
|
const localTreeHash = this.crypto.tree(await this.tree.getRoots(proof.upgrade.length))
|