Skip to content

Commit a52dfd2

Browse files
rename start to sourceLength
1 parent 89d962d commit a52dfd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/core.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ module.exports = class Core {
226226
return false
227227
}
228228

229-
async copyFrom (src, signature, { length = src.tree.length, start = src.tree.length, fork = src.tree.fork, additional = [] } = {}) {
229+
async copyFrom (src, signature, { length = src.tree.length, sourceLength = src.tree.length, fork = src.tree.fork, additional = [] } = {}) {
230230
await this._mutex.lock()
231231

232232
try {
@@ -288,7 +288,7 @@ module.exports = class Core {
288288
// add additional blocks
289289
if (length > src.tree.length) {
290290
const missing = length - src.tree.length
291-
const offset = src.tree.length - start
291+
const offset = src.tree.length - sourceLength
292292

293293
if (additional.length < missing + offset) {
294294
throw INVALID_OPERATION('Insufficient additional nodes were passed')

0 commit comments

Comments
 (0)