prysm-pulse/beacon-chain/forkchoice/protoarray
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
..
BUILD.bazel Fork Choice Proposer Boost Changes (#10083) 2022-01-29 16:32:01 +00:00
doc.go All Beacon Node Package-Level Godocs (#5677) 2020-04-29 12:40:33 -05:00
errors.go Fix Fork Choice prunning (#10137) 2022-01-27 19:17:19 +00:00
ffg_update_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
helpers_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
helpers.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
metrics.go Integrate proto array forkchoice to run time (#4649) 2020-01-25 14:22:25 -06:00
no_vote_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
node_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
node.go ETH2 Types: Slot (#8408) 2021-02-16 07:45:34 +00:00
optimistic_sync_test.go Is optimistic (#10124) 2022-01-26 01:42:18 +00:00
optimistic_sync.go Is optimistic (#10124) 2022-01-26 01:42:18 +00:00
proposer_boost_test.go Fork Choice Proposer Boost Changes (#10083) 2022-01-29 16:32:01 +00:00
proposer_boost.go Fork Choice Proposer Boost Changes (#10083) 2022-01-29 16:32:01 +00:00
store_test.go Fork Choice Proposer Boost Changes (#10083) 2022-01-29 16:32:01 +00:00
store.go Fork Choice Proposer Boost Changes (#10083) 2022-01-29 16:32:01 +00:00
types.go Fork Choice Proposer Boost Changes (#10083) 2022-01-29 16:32:01 +00:00
vote_test.go Fix Fork Choice prunning (#10137) 2022-01-27 19:17:19 +00:00