nimbus-eth2/tests
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
..
fork_choice Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
fuzzing Clarify that the deposit cretion tools are intended for testnets 2021-04-08 19:58:22 +03:00
helpers remove {.inline.} pragmas (#2033) 2020-11-20 11:00:22 +01:00
mocking use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
official use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
simulation Allow the custom testnet metadata to specify a path to the genesis file 2021-06-01 15:50:50 +03:00
slashing_protection Slashing db pruning [Merge only after v2 has been default for 1 noticeable release] (#2452) 2021-05-10 16:32:28 +02:00
spec_block_processing use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
spec_epoch_processing use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
all_tests.nim Altair transition tests (#2624) 2021-06-04 10:38:00 +00:00
all_tests.nim.cfg Rename binaries; Mimic the original repo layout in the distribution 2020-11-09 11:38:52 +02:00
test_attestation_pool.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
test_beacon_chain_db.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
test_beaconstate.nim rename initialize_beacon_state to initialize_beacon_state_from_eth1 (#2536) 2021-05-04 12:19:11 +02:00
test_bitseqs.nim fix subnet logic (#2555) 2021-05-11 22:03:40 +02:00
test_block_pool.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
test_datatypes.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_discovery.nim Remove no longer needed raw Exception raises for queryRandom (#2633) 2021-06-08 22:23:19 +02:00
test_eth1_monitor.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_exit_pool.nim singe validator key cache 2021-06-01 20:43:44 +03:00
test_gossip_validation.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
test_helpers.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_honest_validator.nim Perform attestation check before broadcast (#2550) 2021-05-10 09:13:36 +02:00
test_interop.nim singe validator key cache 2021-06-01 20:43:44 +03:00
test_keystore.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_peer_pool.nim add attestation stats tool to ncli_db (#2539) 2021-05-07 13:36:21 +02:00
test_ssz.nim Db1 cont (#2573) 2021-05-17 18:37:26 +02:00
test_ssz_merkleization.nim Move SSZ, deposit_contracts & eth1_monitor [reorg files 3/5] (#2371) 2021-03-03 07:23:05 +01:00
test_ssz_roundtrip.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_statediff.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
test_sync_manager.nim clean up block processing (#2610) 2021-05-28 19:34:00 +03:00
test_sync_manager.nim.cfg Split Eth2Processor in prep for batching (#2396) 2021-03-11 11:10:57 +01:00
test_zero_signature.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
testblockutil.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
testdbutil.nim Db1 cont (#2573) 2021-05-17 18:37:26 +02:00
teststateutil.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
testutil.nim split state_transition() into slots/block parts and use only block where appropriate (#2630) 2021-06-03 11:42:25 +02:00