mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-09 22:06:21 +00:00
7e0bf7b1b5
When clearing blocks, a callback is called - this callback, if it uses `tmpState`, will be corrupted because it's not fully up to date when the callback is called - we thus introduce a specific state cache for this purpose - ideally, it can be removed later when epoch caching is improved. Incidentally, this helps block sync speed a lot - without this state, the block sync would ping-pong between attestation state and block state which is costly.