nimbus-eth2/research
Jacek Sieka 2449d4b479
cache empty slot state root (#961)
When replaying state transitions, for the slots that have a block, the
state root is taken from the block. For slots that lack a block, it's
currently calculated using hash_tree_root which is expensive.

Caching the empty slot state roots helps us avoid recalculating this
hash, meaning that for replay, hashes are never calculated. This turns
blocks into fairly lightweight "state-diffs"!

* avoid re-saving state when replaying blocks
* advance empty slots slot-by-slot and save root
* fix sim randomness
* fix sim genesis filename
* introduce `isEpoch` to check if a slot is an epoch slot
2020-05-03 19:44:04 +02:00
..
.gitignore some ignores 2019-03-26 19:41:34 -06:00
block_sim.nim cache empty slot state root (#961) 2020-05-03 19:44:04 +02:00
block_sim.nim.cfg block pool simulator (#956) 2020-05-01 17:51:24 +02:00
serialized_sizes.nim [WIP] Fake bls at runtime (#735) 2020-03-05 13:52:10 +01:00
serialized_sizes.nim.cfg ssz: finish implementation (#42) 2018-12-17 19:03:53 +01:00
simutils.nim cache empty slot state root (#961) 2020-05-03 19:44:04 +02:00
stackSizes.nim avoid memory allocations and copies when loading states (#942) 2020-04-28 10:08:32 +02:00
state_sim.nim cache empty slot state root (#961) 2020-05-03 19:44:04 +02:00
state_sim.nim.cfg add simple wasm page with state simulator (#334) 2020-01-22 15:36:16 +00:00