eqlabs / pathfinder

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

feat(storage): store parent_hash inline #2057

Closed Mirko-von-Leipzig closed 3 months ago

Mirko-von-Leipzig commented 3 months ago

This PR adds a new block_headers.parent_hash column.

This means fetching the parent hash from storage no longer requires access to the parent's header. In particular, this is helpful for p2p header sync where we wish to sync backwards which meant the parent header wasn't necessarily present.