Skip to content

Commit

Permalink
catchup before any wakeup logic (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs authored Jun 17, 2024
1 parent 0a199d8 commit 0a3bb85
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 @@ -464,6 +464,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 @@ -475,8 +477,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 0a3bb85

Please sign in to comment.