hypercore 10.33.3 → 10.33.4
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 +2 -2
- package/package.json +1 -1
package/lib/core.js
CHANGED
|
@@ -224,7 +224,7 @@ module.exports = class Core {
|
|
|
224
224
|
return false
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
async copyFrom (src, signature, { length = src.tree.length, additional = [] } = {}) {
|
|
227
|
+
async copyFrom (src, signature, { length = src.tree.length, fork = src.tree.fork, additional = [] } = {}) {
|
|
228
228
|
await this._mutex.lock()
|
|
229
229
|
|
|
230
230
|
try {
|
|
@@ -334,7 +334,7 @@ module.exports = class Core {
|
|
|
334
334
|
|
|
335
335
|
await batch.commit()
|
|
336
336
|
|
|
337
|
-
this.tree.fork =
|
|
337
|
+
this.tree.fork = fork
|
|
338
338
|
|
|
339
339
|
this.header.tree.length = this.tree.length
|
|
340
340
|
this.header.tree.rootHash = this.tree.hash()
|