mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-02 09:46:26 +00:00
2449d4b479
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
33 lines
436 B
Plaintext
33 lines
436 B
Plaintext
nimcache/
|
|
|
|
# Executables shall be put in an ignored build/ directory
|
|
build/
|
|
|
|
# Nimble packages
|
|
/vendor/.nimble
|
|
|
|
# ntags/ctags output
|
|
/tags
|
|
|
|
# Ignore dynamic, static libs and libtool archive files
|
|
*.so
|
|
*.dylib
|
|
*.a
|
|
*.la
|
|
*.exe
|
|
*.dll
|
|
|
|
# a symlink that can't be added to the repo because of Windows
|
|
/beacon_chain.nims
|
|
|
|
/scripts/testnet*.sh
|
|
|
|
# State sim # TODO - move in another folder
|
|
0000-*.json
|
|
*.ssz
|
|
*.log
|
|
*.sqlite3
|
|
|
|
/local_testnet_data
|
|
|