juno
juno copied to clipboard
perf(state): avoid full header decode in StateAtBlockNumber
StateAtBlockNumber currently calls pruner.HeaderByNumberIfStateRetained, which fully decodes the block header even though opening historical state only needs:
GlobalStateRoot Hash, for the state-retention hash → number check
A partial-header decode could avoid materializing heavier unused fields such as EventsBloom.
Use https://github.com/NethermindEth/juno/pull/3782 as reference implementation
Hi @ongyimeng, I'd like to work on this one, will follow #3782 as the reference implementation.
This issue is stale because it has been open 35 days with no activity. Remove stale label or comment or this will be closed in 14 days.