Skip to content

Commit

Permalink
pass encryption key to initial fast forward core
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs committed Mar 20, 2024
1 parent d00b01e commit fa16924
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,9 @@ module.exports = class Autobase extends ReadyResource {
}

async initialFastForward (key, length, timeout) {
const core = this.store.get(key)
const encryptionKey = this._viewStore.getBlockKey(this._viewStore.getSystemCore().name)

const core = this.store.get({ key, encryptionKey, isBlockKey: true })
const target = await this._preFastForward(core, length, timeout)
await core.close()

Expand Down

0 comments on commit fa16924

Please sign in to comment.