juno icon indicating copy to clipboard operation
juno copied to clipboard

perf(state): avoid full header decode in StateAtBlockNumber

Open ongyimeng opened this issue 5 months ago • 2 comments

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

ongyimeng avatar Jul 03 '26 01:07 ongyimeng

Hi @ongyimeng, I'd like to work on this one, will follow #3782 as the reference implementation.

0xsamalt avatar Jul 09 '26 11:07 0xsamalt

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.

github-actions[bot] avatar Sep 08 '26 00:09 github-actions[bot]