nimbus-eth2/beacon_chain/spec
Jacek Sieka f19a497eec
ncli_db: add putState, putBlock (#3096)
* ncli_db: add putState, putBlock

These tools allow modifying an existing nimbus database for the purpose
of recovery or reorg, moving the head, tail and genesis to arbitrary
points.

* remove potentially expensive `putState` in `BeaconStateDB`
* introduce `latest_block_root` which computes the root of the latest
applied block from the `latest_block_header` field (instead of passing
it in separately)
* avoid some unnecessary BeaconState copies during init
* discover https://github.com/nim-lang/Nim/issues/19094
* prefer `HashedBeaconState` in a few places to avoid recomputing state
root
* fetch latest block root from state when creating blocks
* harden `get_beacon_proposer_index` against invalid slots and document
* move random spec function tests to `test_spec.nim`
* avoid unnecessary state root computation before block proposal
2021-11-18 13:02:43 +01:00
..
datatypes update 22 spec URLs to v1.1.5 (#3111) 2021-11-18 08:08:00 +00:00
eth2_apis REST/JSON-RPC: speed up several requests (#3092) 2021-11-12 23:29:28 +01:00
presets manually-verified v1.1.5 spec URL updates (#3068) 2021-11-09 08:54:59 +00:00
beaconstate.nim ncli_db: add putState, putBlock (#3096) 2021-11-18 13:02:43 +01:00
crypto.nim update 18 spec URLs to v1.1.2; switch from eth2.0-specs to consensus-specs (#2990) 2021-10-14 06:30:21 +00:00
digest.nim mass/mechanical update of 1.1.4 phase0 and altair spec URLs to 1.1.5 (#3067) 2021-11-09 07:40:41 +00:00
english_word_list.txt Bump testutils 2020-06-01 16:58:28 +03:00
eth2_merkleization.nim Use nim-ssz-serialization module and rm local ssz code 2021-11-10 13:37:24 +02:00
eth2_ssz_serialization.nim Use nim-ssz-serialization module and rm local ssz code 2021-11-10 13:37:24 +02:00
forks.nim Support starting from altair (#3054) 2021-11-10 13:39:08 +02:00
helpers.nim update 22 spec URLs to v1.1.5 (#3111) 2021-11-18 08:08:00 +00:00
keystore.nim nim-libp2p auto bump (#2840) 2021-10-21 13:01:29 +02:00
light_client_sync.nim mass/mechanical update of 1.1.4 phase0 and altair spec URLs to 1.1.5 (#3067) 2021-11-09 07:40:41 +00:00
network.nim manually-verified v1.1.5 spec URL updates (#3068) 2021-11-09 08:54:59 +00:00
presets.nim mass/mechanical update of 1.1.4 phase0 and altair spec URLs to 1.1.5 (#3067) 2021-11-09 07:40:41 +00:00
signatures.nim update 22 spec URLs to v1.1.5 (#3111) 2021-11-18 08:08:00 +00:00
signatures_batch.nim update 22 spec URLs to v1.1.5 (#3111) 2021-11-18 08:08:00 +00:00
ssz_codec.nim Use nim-ssz-serialization module and rm local ssz code 2021-11-10 13:37:24 +02:00
state_transition.nim ncli_db: add putState, putBlock (#3096) 2021-11-18 13:02:43 +01:00
state_transition_block.nim update 22 spec URLs to v1.1.5 (#3111) 2021-11-18 08:08:00 +00:00
state_transition_epoch.nim update 22 spec URLs to v1.1.5 (#3111) 2021-11-18 08:08:00 +00:00
validator.nim ncli_db: add putState, putBlock (#3096) 2021-11-18 13:02:43 +01:00
weak_subjectivity.nim eth2.0-specs -> consensus-specs repo rename (#2801) 2021-08-20 23:37:45 +00:00