Skip to content

v1.1.0-beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 05 Dec 11:49
· 0 commits to master since this release
f6c0261
Change parameters for bor producer selection algorithm (#1208)

* bor,helper: update seed and voting powers for producer selection

* bor: minor fixes

* bor: fix GetNextSpanSeed for span-id<2

* helper: (temp) set HF height for testing

* bor: (temp) change default params

* bor: add logs + fix query for next span

* bor: modify last sprint producer case

* bor: (temp) add logs for debugging

* bor,helper: modify approach to get seed

* bor: some cleanup

* bor: use pointer receivers + add some debug logs

* bor,common: fix storage of seed producer

* app,bor,helper: add UTs

* Reduce validators collusion chance

* Additional tests

* If no unique author found, return first one that is different from last author

* Change settings for testing

* Prevent taking seed in two consecutive spans from same author when there are other authors

* Enable at zero height for testing

* Add more logging

* When proposing span 1, take block 1

* Test for proposing span 1

* Fix tests

* Refactor

* Update params

* bor,helper: address TODOs

* bor: add comments for getBorBlockForSpanSeed

* helper: (temp) set HF height for testing

* bor,helper: set HF name and height for amoy and minor error logging changes in querier

* bor: fix lint

---------

Co-authored-by: Angel Valkov <[email protected]>