nimbus-eth2/beacon_chain/eth1
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
..
deposit_contract.nim disentangle eth2 types from the ssz library (#2785) 2021-08-18 20:57:58 +02:00
deposit_contract_code.txt Move SSZ, deposit_contracts & eth1_monitor [reorg files 3/5] (#2371) 2021-03-03 07:23:05 +01:00
eth1_monitor.nim ncli_db: add putState, putBlock (#3096) 2021-11-18 13:02:43 +01:00
merkle_minimal.nim a dozen spec URL updates to v1.1.5 (#3078) 2021-11-10 08:12:41 +00:00