hypercore 11.18.1 → 11.18.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.
|
@@ -101,13 +101,11 @@ async function verify(storage, buffer, { referrer = null } = {}) {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
async function proof(sender, { index, block = null } = {}) {
|
|
104
|
-
const
|
|
104
|
+
const proof = await sender.proof({
|
|
105
105
|
block: block ? { index, nodes: 0 } : null,
|
|
106
106
|
upgrade: { start: 0, length: sender.length }
|
|
107
107
|
})
|
|
108
108
|
|
|
109
|
-
const proof = await treeProof.settle()
|
|
110
|
-
|
|
111
109
|
if (block) proof.block.value = block
|
|
112
110
|
proof.manifest = sender.core.header.manifest
|
|
113
111
|
|