eqlabs / pathfinder

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

feat(pathfinder/examples): add `recompute_state_diff_length` tool #2056

Closed kkovaacs closed 3 months ago

kkovaacs commented 3 months ago

This tool fixes inconsistencies in state diff lengths we store for headers. It recomputes the state diff length based on the actual state diff we return based on our data and updates the value in the headers table in case it does not match.