prysm-pulse/beacon-chain/state/v2
kasey cf0bd633f0
Checkpoint Sync 1/5 - fork/version detection and unmarshaling support (#10380)
* fork/version detection and unmarshaling support

* Update config/params/config.go

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* Update proto/detect/configfork.go

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* PR feedback

* move ssz initialization into the detect package

* clarify comment

* VersionForEpoch is much simpler/clearer in reverse

* simpler VersionForEpoch; build AllConfigs in init

* use fieldparams for Version

* Update proto/detect/configfork_test.go

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* remove custom ForkName type, use runtime/version

* pr cleanup

* random fix from bad gh ui suggestion; privatize

* privatize fieldSpec methods; + unit tests

* Update proto/detect/configfork.go

Co-authored-by: Potuz <potuz@prysmaticlabs.com>

* fix bad github ui suggestion

* ensure unique versions for simpler config match

* fmt & adding unit test for ByState()

* table-driven unit test for ByState

* TestUnmarshalState

* OrderedSchedule -> network/forks per PR feedback

* goimports

* lint fixes

* move proto/detect -> ssz/encoding/detect

* use typeUndefined in String

* backport config tests from e2e PR

* fix config parity test; make debugging it easier

* lint

* fix fork schedule initialization

* cleanup

* fix build

* fix big ole derp

* anything for you, deep source

* goimportsss

* InitializeForkSchedule in LoadChainConfigFile

* PR feedback

Co-authored-by: kasey <kasey@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-03-21 19:43:41 +00:00
..
BUILD.bazel Checkpoint Sync 1/5 - fork/version detection and unmarshaling support (#10380) 2022-03-21 19:43:41 +00:00
deprecated_getters_test.go Some improvements for the state package testing (#10316) 2022-03-15 18:32:09 +00:00
deprecated_getters.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
deprecated_setters_test.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
deprecated_setters.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
field_roots.go Remove SSZ Cache (#10256) 2022-02-22 17:27:51 +08:00
getters_block_test.go Some improvements for the state package testing (#10316) 2022-03-15 18:32:09 +00:00
getters_block.go Create Encoding Bytesutil (#9658) 2021-09-23 15:23:37 +00:00
getters_checkpoint.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
getters_eth1.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
getters_misc.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
getters_participation.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
getters_randao.go Create Encoding Bytesutil (#9658) 2021-09-23 15:23:37 +00:00
getters_state.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
getters_sync_committee.go Create Encoding Bytesutil (#9658) 2021-09-23 15:23:37 +00:00
getters_test.go Some improvements for the state package testing (#10316) 2022-03-15 18:32:09 +00:00
getters_validator_test.go Some improvements for the state package testing (#10316) 2022-03-15 18:32:09 +00:00
getters_validator.go Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
proofs_test.go Initialize Merkle Layers and Recompute Dirty Fields in BeaconState Proofs (#10032) 2022-01-11 17:36:03 +08:00
proofs.go Initialize Merkle Layers and Recompute Dirty Fields in BeaconState Proofs (#10032) 2022-01-11 17:36:03 +08:00
references_test.go Some improvements for the state package testing (#10316) 2022-03-15 18:32:09 +00:00
setters_block.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
setters_checkpoint.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
setters_eth1.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
setters_misc.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
setters_participation.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
setters_randao.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
setters_state.go Split state package into state-proto and state-native (#10069) 2022-01-13 12:23:53 +01:00
setters_sync_committee.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
setters_test.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
setters_validator.go Add Balance Field Trie (#9793) 2021-11-19 20:01:15 +08:00
state_trie_test.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
state_trie.go Checkpoint Sync 1/5 - fork/version detection and unmarshaling support (#10380) 2022-03-21 19:43:41 +00:00
types.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00