Skip to content
Unverified Commit 611f4d3d authored by Bastian Köcher's avatar Bastian Köcher
Browse files

sc-state-db: Keep track of `LAST_PRUNED` after warp syncing

When warp syncing we import the target block with all its state.
However, we didn't store the `LAST_PRUNED` block which would then lead
to `pruning` to forget about the imported block after a restart of the
node. We just set `LAST_PRUNED` to the parent block of the warp sync
target block to fix this issue.
parent 8ebb5c33
Pipeline #411161 failed with stages
in 1 hour, 49 minutes, and 7 seconds