-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
Showing
17 changed files
with
1,128 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package bor | ||
|
||
var RollbackVotingPowers = rollbackVotingPowers |
Oops, something went wrong.