prysm-pulse/beacon-chain/blockchain
terence tsao 8a01d412f5
Implement fork choice spec tests (#10159)
* starting

* Reimplement store

* begin on proposer boost

* implement fork choice proposer boost algorithm

* boosting

* gaz

* add mutexes and previous root

* comment on compute proposer boost

* safe

* rem todo

* reset and add tests

* unit test for proposer boost score

* boost works

* Can process block

* Basic test case passing

* ex ante

* test

* propoer test

* More progresses

* More fixes

* rm unused pieces

* Refactor, add phase 0

* locks

* vanilla ex-ante attack

* test similar to spec test

* works works works

* boost test working for num votes > proposer boost weight

* commentary fixes

* rem unused

* comments

* Proposer boost use store time

* Reset proposer root

* debugging

* passing

* Rm unused visibility imports

* Move update head to better place

* Fix deepsrc complains

* Fix more complains

* Raul's feedback

* Use correct byte lengths

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-01-31 19:03:48 +00:00
..
store Use store in blockchain service (#10125) 2022-01-25 18:47:39 +00:00
testing Remove libfuzzer / afl based builds in favor of go 1.18 fuzz testing (#10065) 2022-01-20 04:51:02 +00:00
blockchain_test.go Update TestMain(): do not call os.Exit() explicitly (#8046) 2020-12-04 16:10:07 +00:00
BUILD.bazel Implement fork choice spec tests (#10159) 2022-01-31 19:03:48 +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 Use store in blockchain service (#10125) 2022-01-25 18:47:39 +00:00
chain_info.go Implement fork choice spec tests (#10159) 2022-01-31 19:03:48 +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
options.go Switch to lazy state balance cache (#9822) 2021-11-19 15:59:26 +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 Implement fork choice spec tests (#10159) 2022-01-31 19:03:48 +00:00
process_block.go Implement fork choice spec tests (#10159) 2022-01-31 19:03:48 +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