Skip to content

Commit

Permalink
rollback head sequence by 1 on rollback call
Browse files Browse the repository at this point in the history
  • Loading branch information
jowparks committed Apr 8, 2024
1 parent f1a5af7 commit a8ba68e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class LightBlockCache {
}

private async rollbackHead(): Promise<void> {
let head = await this.getHeadSequence();
let head = (await this.getHeadSequence()) - 1;
if (!head) {
logger.error("Head sequence is not set. Cannot rollback.");
return;
Expand Down

0 comments on commit a8ba68e

Please sign in to comment.