nimbus-eth2/beacon_chain/rpc
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
..
beacon_api.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
beacon_rest_api.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
config_api.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
config_rest_api.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
debug_api.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
debug_rest_api.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
eth2_json_rest_serialization.nim Fix `aggregation_bits` json serialization. 2021-06-11 01:08:17 +03:00
eth2_json_rpc_serialization.nim json cleanups (#2456) 2021-03-26 15:11:06 +01:00
eth_merge_sigs.nim non-intrusive, novel portions of merge (#2535) 2021-05-04 11:54:19 +00:00
eth_merge_web3.nim partially integrate eth1 merge changes (#2548) 2021-05-20 10:44:13 +00:00
event_api.nim json cleanups (#2456) 2021-03-26 15:11:06 +01:00
event_rest_api.nim Address #2491. 2021-04-13 17:07:41 +03:00
nimbus_api.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
nimbus_rest_api.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
node_api.nim json cleanups (#2456) 2021-03-26 15:11:06 +01:00
node_rest_api.nim Convert all the tuples to objects because of de-serialization of tuples issue. 2021-05-21 09:47:13 +03:00
rest_utils.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
rpc_utils.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
validator_api.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00
validator_rest_api.nim use ForkedHashedBeaconState in StateData (#2634) 2021-06-11 20:51:46 +03:00