forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[narwhal] calculate consensus reputation scores (MystenLabs#8581)
## Description Introduces the authority score calculation as this is [described here](https://www.notion.so/mystenlabs/2023-04-Leader-Reputation-c9204dd9e91249d5a68175e7076f9e91?pvs=4#84e2b6aac24241a1bec8b8fd51ea51ab). The `change_schedule_every_committed_sub_dags` has been introduced to accommodate the score reset for every `K` commit rounds which will be later needed once we implement the schedule change. Also, the crash recovery path has been considered to ensure that we keep counting scores from where we left off. Additional testing has been introduced. ## Test Plan Unit tests included under the bullshark_tests file. --- If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process. ### Type of Change (Check all that apply) - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [x] necessitate either a data wipe or data migration ### Release notes
- Loading branch information
Showing
9 changed files
with
356 additions
and
41 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
Oops, something went wrong.