f19a497eec
* 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 |
||
---|---|---|
.. | ||
all_altair_fixtures.nim | ||
test_fixture_fork.nim | ||
test_fixture_merkle_single_proof.nim | ||
test_fixture_operations.nim | ||
test_fixture_rewards.nim | ||
test_fixture_sanity_blocks.nim | ||
test_fixture_sanity_slots.nim | ||
test_fixture_ssz_consensus_objects.nim | ||
test_fixture_state_transition_epoch.nim | ||
test_fixture_sync_protocol.nim | ||
test_fixture_transition.nim |