eqlabs / pathfinder

A Starknet full node written in Rust
https://eqlabs.github.io/pathfinder/
Other
613 stars 222 forks source link

feat(pathfinder/sync/checkpoint): add rollback_to_anchor implementation to checkpoint sync #2100

Closed kkovaacs closed 3 weeks ago

kkovaacs commented 3 weeks ago

We're not yet updating the state tries, so rolling back just means we have to remove data block-by-block until we reach the anchor.

This PR also fixes some trace/panic messages and moves stream processing logs to the trace level to avoid making debug logs unreadable.