prysm-pulse/beacon-chain/blockchain
Raul Jordan 65ec437ce5
Fork Choice Proposer Boost Changes (#10083)
* 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

* ex ante

* test

* propoer test

* 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

* boost necessary to sandwich unit test

* sad path

* gaz

* Update beacon-chain/forkchoice/protoarray/proposer_boost.go

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

* Update beacon-chain/forkchoice/protoarray/proposer_boost.go

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

* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go

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

* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go

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

* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go

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

* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go

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

* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go

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

* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go

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

* gaz

* radek comments

* reset boosted root in on new slot

* pass

* broken tests

* cfg test

* modify e2e config

* Revert e2e changes

* Test

* Test again

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2022-01-29 16:32:01 +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 Add on_tick from spec (#10130) 2022-01-25 22:07:57 +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 Use store in blockchain service (#10125) 2022-01-25 18:47:39 +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 Use store in blockchain service (#10125) 2022-01-25 18:47:39 +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 Add on_tick from spec (#10130) 2022-01-25 22:07:57 +00:00
new_slot.go Fork Choice Proposer Boost Changes (#10083) 2022-01-29 16:32:01 +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 Use store in blockchain service (#10125) 2022-01-25 18:47:39 +00:00
process_attestation.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
process_block_helpers.go Use store in blockchain service (#10125) 2022-01-25 18:47:39 +00:00
process_block_test.go Use store in blockchain service (#10125) 2022-01-25 18:47:39 +00:00
process_block.go Fork Choice Proposer Boost Changes (#10083) 2022-01-29 16:32:01 +00:00
receive_attestation_test.go Switch to lazy state balance cache (#9822) 2021-11-19 15:59:26 +00:00
receive_attestation.go Add on_tick from spec (#10130) 2022-01-25 22:07:57 +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