prysm-pulse/beacon-chain/state/state-native/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
..
beacon_state_mainnet_test.go ran gofmt @ v1.17, these are the resulting changes (#10362) 2022-03-14 15:58:13 -05:00
beacon_state_mainnet.go ran gofmt @ v1.17, these are the resulting changes (#10362) 2022-03-14 15:58:13 -05:00
beacon_state_minimal_test.go ran gofmt @ v1.17, these are the resulting changes (#10362) 2022-03-14 15:58:13 -05:00
beacon_state_minimal.go ran gofmt @ v1.17, these are the resulting changes (#10362) 2022-03-14 15:58:13 -05:00
BUILD.bazel Some improvements for the state package testing (#10316) 2022-03-15 18:32:09 +00:00
deprecated_getters_test.go Split state package into state-proto and state-native (#10069) 2022-01-13 12:23:53 +01:00
deprecated_getters.go Split state package into state-proto and state-native (#10069) 2022-01-13 12:23:53 +01:00
deprecated_setters_test.go Split state package into state-proto and state-native (#10069) 2022-01-13 12:23:53 +01:00
deprecated_setters.go Split state package into state-proto and state-native (#10069) 2022-01-13 12:23:53 +01:00
field_roots.go Remove SSZ Cache (#10256) 2022-02-22 17:27:51 +08:00
generated.ssz.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01:00
getters_block_test.go Some improvements for the state package testing (#10316) 2022-03-15 18:32:09 +00:00
getters_block.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01:00
getters_checkpoint.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01:00
getters_eth1.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01:00
getters_misc.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
getters_participation.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01:00
getters_randao.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01:00
getters_state.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01:00
getters_sync_committee.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01: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 Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01:00
proofs.go Native beacon state: fieldtrie package (#10146) 2022-02-02 12:18:06 +00:00
references_test.go Some improvements for the state package testing (#10316) 2022-03-15 18:32:09 +00:00
setters_block.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01:00
setters_checkpoint.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01:00
setters_eth1.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01:00
setters_misc.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
setters_participation.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01:00
setters_randao.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01:00
setters_state.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01:00
setters_sync_committee.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01:00
setters_test.go Return state interface from native state constructors (#10208) 2022-02-14 17:51:22 +08:00
setters_validator.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01:00
state_trie_test.go Native beacon state: v2 (#10121) 2022-01-27 09:42:32 +01: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