prysm-pulse/beacon-chain/blockchain
Radosław Kapka 8455656597
Use beacon state interfaces instead of concrete structs (#10195)
* return interface from testing/util

* remove usages of v1

* return interface from InitializeFromProto

* return interface from InitializeFromProto

* fix test

* fix interface visibility

* more fixes

* use InitializeFromProtoUnsafe in testing/util

* return early error from mock

* v2

* fix tests

* remove unnecessary assertion

* use struct in nil state test

* Revert "Auxiliary commit to revert individual files from 6bb528c2c5df2446ad18450009f63f44318d41a9"

This reverts commit 7d70238a301209f6dbfc8ff1d81b16e33b0bd67d.

* use struct in sync committee test

* v3

* use InitializeFromProtoUnsafe in mock

* use version information

* Revert "Auxiliary commit to revert individual files from 6bb528c2c5df2446ad18450009f63f44318d41a9"

This reverts commit 5d5e6f2884d21caec7530c16ad2a0d0d27c44aa1.

* revert changes to ClearPreGenesisData

* fix build error

* remove error from PreGenesisState

* bzl
2022-02-08 09:30:06 +00:00
..
store Use store in blockchain service (#10125) 2022-01-25 18:47:39 +00:00
testing Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
blockchain_test.go Update TestMain(): do not call os.Exit() explicitly (#8046) 2020-12-04 16:10:07 +00:00
BUILD.bazel add isOptimisticCandidateBlock and IsExecutionBlock (#10191) 2022-02-07 01:26:20 +00:00
chain_info_norace_test.go [Service Config Revamp] - Blockchain Initialization (#9783) 2021-10-18 17:48:05 +00:00
chain_info_test.go Add IsOptimistic chain info getter (#10184) 2022-02-03 21:30:07 +00:00
chain_info.go Add IsOptimistic chain info getter (#10184) 2022-02-03 21:30:07 +00:00
checktags_test.go Fix data races in tests accessing beacon config concurrently (#8190) 2021-01-05 04:51:25 +00:00
error.go Use store in blockchain service (#10125) 2022-01-25 18:47:39 +00:00
head_sync_committee_info_test.go [Service Config Revamp] - Blockchain Initialization (#9783) 2021-10-18 17:48:05 +00:00
head_sync_committee_info.go Extract conditional slot processing to new function (#10114) 2022-01-25 14:52:18 +00:00
head_test.go Use store in blockchain service (#10125) 2022-01-25 18:47:39 +00:00
head.go Implement fork choice spec tests (#10159) 2022-01-31 19:03:48 +00:00
info_test.go Switch to lazy state balance cache (#9822) 2021-11-19 15:59:26 +00:00
info.go Move Shared/Params Into Config/Params (#9642) 2021-09-21 19:59:25 +00:00
init_sync_process_block.go Eliminate Proto V2 Namespace (#9297) 2021-07-28 21:23:44 +00:00
init_test.go Move Shared/Params Into Config/Params (#9642) 2021-09-21 19:59:25 +00:00
log_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
log.go Improve "synced block.." log (#9760) 2021-10-09 15:27:34 +02:00
metrics_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
metrics.go #10036 Replace codename Merge with Bellatrix (1st step) (#10044) 2022-01-10 16:47:30 +00:00
mock_test.go Switch to lazy state balance cache (#9822) 2021-11-19 15:59:26 +00:00
new_slot_test.go Implement fork choice spec tests (#10159) 2022-01-31 19:03:48 +00:00
new_slot.go Implement fork choice spec tests (#10159) 2022-01-31 19:03:48 +00:00
optimistic_sync_test.go add isOptimisticCandidateBlock and IsExecutionBlock (#10191) 2022-02-07 01:26:20 +00:00
optimistic_sync.go add isOptimisticCandidateBlock and IsExecutionBlock (#10191) 2022-02-07 01:26:20 +00:00
options.go Switch to lazy state balance cache (#9822) 2021-11-19 15:59:26 +00:00
pow_block_test.go Implement is_valid_terminal_pow_block (#10172) 2022-02-03 05:28:23 +00:00
pow_block.go Implement is_valid_terminal_pow_block (#10172) 2022-02-03 05:28:23 +00:00
process_attestation_helpers.go Extract conditional slot processing to new function (#10114) 2022-01-25 14:52:18 +00:00
process_attestation_test.go Implement fork choice spec tests (#10159) 2022-01-31 19:03:48 +00:00
process_attestation.go Implement fork choice spec tests (#10159) 2022-01-31 19:03:48 +00:00
process_block_helpers.go Implement fork choice spec tests (#10159) 2022-01-31 19:03:48 +00:00
process_block_test.go Save sync tips to DB (#10171) 2022-02-06 18:00:47 +00:00
process_block.go Save sync tips to DB (#10171) 2022-02-06 18:00:47 +00:00
receive_attestation_test.go Switch to lazy state balance cache (#9822) 2021-11-19 15:59:26 +00:00
receive_attestation.go Implement fork choice spec tests (#10159) 2022-01-31 19:03:48 +00:00
receive_block_test.go Use store in blockchain service (#10125) 2022-01-25 18:47:39 +00:00
receive_block.go Use store in blockchain service (#10125) 2022-01-25 18:47:39 +00:00
service_norace_test.go [Service Config Revamp] - Blockchain Initialization (#9783) 2021-10-18 17:48:05 +00:00
service_test.go Use store in blockchain service (#10125) 2022-01-25 18:47:39 +00:00
service.go Use store in blockchain service (#10125) 2022-01-25 18:47:39 +00:00
state_balance_cache_test.go State balance cache: handle input zeros (#10144) 2022-01-28 17:14:13 +00:00
state_balance_cache.go State balance cache: handle input zeros (#10144) 2022-01-28 17:14:13 +00:00
weak_subjectivity_checks_test.go Use store in blockchain service (#10125) 2022-01-25 18:47:39 +00:00
weak_subjectivity_checks.go Weak subjectivity verification refactor (#9832) 2021-11-03 15:07:46 +00:00