nimbus-eth2/beacon_chain/block_pools
Jacek Sieka 7e0bf7b1b5
Add separate state for clearance (#1352)
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.
2020-07-22 08:25:13 +02:00
..
block_pools_types.nim Add separate state for clearance (#1352) 2020-07-22 08:25:13 +02:00
candidate_chains.nim Add separate state for clearance (#1352) 2020-07-22 08:25:13 +02:00
clearance.nim Add separate state for clearance (#1352) 2020-07-22 08:25:13 +02:00
quarantine.nim cache block hash (#1329) 2020-07-16 15:16:51 +02:00