nimbus-eth2/tests/official
tersec 146fa48454
use ForkedHashedBeaconState in StateData (#2634)
* use ForkedHashedBeaconState in StateData

* fix FAR_FUTURE_EPOCH -> slot overflow; almost always use assign()

* avoid stack allocation in maybeUpgradeStateToAltair()

* create and use dispatch functions for check_attester_slashing(), check_proposer_slashing(), and check_voluntary_exit()

* use getStateRoot() instead of various state.data.hbsPhase0.root

* remove withStateVars.hashedState(), which doesn't work as a design anymore

* introduce spec/datatypes/altair into beacon_chain_db

* fix inefficient codegen for getStateField(largeStateField)

* state_transition_slots() doesn't either need/use blocks or runtime presets

* combine process_slots(HBS)/state_transition_slots(HBS) which differ only in last-slot htr optimization

* getStateField(StateData, ...) was replaced by getStateField(ForkedHashedBeaconState, ...)

* fix rollback

* switch some state_transition(), process_slots, makeTestBlocks(), etc to use ForkedHashedBeaconState

* remove state_transition(phase0.HashedBeaconState)

* remove process_slots(phase0.HashedBeaconState)

* remove state_transition_block(phase0.HashedBeaconState)

* remove unused callWithBS(); separate case expression from if statement

* switch back from nested-ref-object construction to (ref Foo)(Bar())
2021-06-11 20:51:46 +03:00
..
altair use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
phase0 use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
all_fixtures_require_ssz.nim reorganize SSZ-based tests to support phase0 and altair (#2612) 2021-05-28 20:32:26 +00:00
fixtures_utils.nim use v1.1.0-alpha.6 test vectors (#2618) 2021-05-30 09:51:01 +00:00
test_fixture_bls.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_fixture_const_sanity_check.nim use v1.1.0-alpha.6 test vectors (#2618) 2021-05-30 09:51:01 +00:00
test_fixture_rewards.nim use v1.1.0 phase 0 test vectors (#2592) 2021-05-24 10:42:40 +02:00
test_fixture_ssz_generic_types.nim use v1.1.0 phase 0 test vectors (#2592) 2021-05-24 10:42:40 +02:00