Skip to content

Commit

Permalink
Re-added missing astrid flags to UnwindHeimdall (#12582)
Browse files Browse the repository at this point in the history
This fixes this issue when running main with bor_heimdall stage:

```
[EROR] [10-31|09:13:03.527] Staged Sync                              err="[3/9 BorHeimdall] unexpected missing first processed block info entry when unwinding"
```

It was caused by a miss-merge after this PR:
#12148

---------

Co-authored-by: taratorio <[email protected]>
  • Loading branch information
mh0lt and taratorio authored Nov 5, 2024
1 parent 685f6f0 commit 278466e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polygon/bor/bordb/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func UnwindHeimdall(ctx context.Context, heimdallStore heimdall.Store, bridgeSto
}
}

if !unwindCfg.KeepEventProcessedBlocks {
if !unwindCfg.KeepEventProcessedBlocks && unwindCfg.Astrid {
if err := bridge.UnwindEventProcessedBlocks(tx, unwindPoint); err != nil {
return err
}
Expand Down

0 comments on commit 278466e

Please sign in to comment.