prysm-pulse/beacon-chain/blockchain
Preston Van Loon e477fdfd6d
Embedded mainnet genesis state + load genesis.ssz from file (#8614)
* Update rules_go and fix proto conflicts

* gaz

* Update generated code

* First pass inclusion of using baked states

* more emptypb fixes

* remove testnet genesis files, only embed mainnet

* Refactoring for SaveGenesisData, fix tests that use mainnet config but do not support mainnet genesis values

* a bit more refactoring, load genesis from a file. Needs tests still

* Add method to ensure an embedded genesis file also has the appropriate genesis block

* gofmt

* more clear error

* Check genesis fork version to ensure testnet config matches genesis file

* viz

* test for SaveGenesisData

* More genesis db method tests

* Merge

* Minor tweaks, lint, fmt, etc

* Add more test to genesis db methods

* Revert beacon-chain/state/stateV0/BUILD.bazel

* Update beacon-chain/db/iface/errors.go

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>

* PR feedback

* Update beacon-chain/db/kv/genesis.go

Co-authored-by: terence tsao <terence@prysmaticlabs.com>

* fmt.Errorf works better for nil errors

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-03-18 21:00:00 +00:00
..
testing Move state pkg to stateV0 pkg (#8620) 2021-03-17 19:49:49 +00:00
blockchain_test.go Update TestMain(): do not call os.Exit() explicitly (#8046) 2020-12-04 16:10:07 +00:00
BUILD.bazel Embedded mainnet genesis state + load genesis.ssz from file (#8614) 2021-03-18 21:00:00 +00:00
chain_info_norace_test.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
chain_info_test.go Move state pkg to stateV0 pkg (#8620) 2021-03-17 19:49:49 +00:00
chain_info.go Move state pkg to stateV0 pkg (#8620) 2021-03-17 19:49:49 +00:00
checktags_test.go Fix data races in tests accessing beacon config concurrently (#8190) 2021-01-05 04:51:25 +00:00
head_test.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
head.go Move state pkg to stateV0 pkg (#8620) 2021-03-17 19:49:49 +00:00
info_test.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
info.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
init_sync_process_block.go Move skip-regen-historical-states to deprecated (#6512) 2020-07-08 00:15:45 +00:00
init_test.go Embedded mainnet genesis state + load genesis.ssz from file (#8614) 2021-03-18 21:00:00 +00:00
log_test.go Hide beacon operation field in log if it's 0 (#8330) 2021-02-18 19:08:27 +00:00
log.go Move timings of synced block to debug level (#8491) 2021-02-22 16:32:23 +00:00
metrics_test.go Configurable testutil's BeaconState (#8407) 2021-02-08 20:00:09 +00:00
metrics.go Use beacon state interfaces across (#8552) 2021-03-08 14:37:33 -08:00
process_attestation_helpers.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
process_attestation_test.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
process_attestation.go Move state pkg to stateV0 pkg (#8620) 2021-03-17 19:49:49 +00:00
process_block_helpers.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
process_block_test.go Move state pkg to stateV0 pkg (#8620) 2021-03-17 19:49:49 +00:00
process_block.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
receive_attestation_test.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
receive_attestation.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
receive_block_test.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
receive_block.go Move state pkg to stateV0 pkg (#8620) 2021-03-17 19:49:49 +00:00
service_norace_test.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
service_test.go Move state pkg to stateV0 pkg (#8620) 2021-03-17 19:49:49 +00:00
service.go Embedded mainnet genesis state + load genesis.ssz from file (#8614) 2021-03-18 21:00:00 +00:00
weak_subjectivity_checks_test.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
weak_subjectivity_checks.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00