Skip to content

Commit

Permalink
catchup before any wakeup logic
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs committed Jun 14, 2024
1 parent bfbd46a commit 2e9b30d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,8 @@ module.exports = class Autobase extends ReadyResource {
this._prebump = this._openPreBump()
await this._prebump

await this._catchup(this._initialHeads)

await this._wakeup.ready()

this.system.requestWakeup()
Expand All @@ -474,8 +476,6 @@ module.exports = class Autobase extends ReadyResource {
if (this.reindexing) this._setReindexed()

this.queueFastForward()

await this._catchup(this._initialHeads)
}

async _catchup (nodes) {
Expand Down

0 comments on commit 2e9b30d

Please sign in to comment.