-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify rewards by adding rewardable topic set (#318)
Add reward-ready queue, just like we have for churnable topics. Add topic when reputer payload committed, pop during EmitRewards, reset when rewards paid out. Topics still need to be churnable (active, epochLength % blockHeight == 0, top N by weight) in order to be rewardable, rewardable is just tracked more cleanly. No more "x-ready" just "xable": * "churn-ready" -> "churnable" * "reward-ready" -> "rewardable" Added query to return weight and "effective revenue" from `GetTopic` query. Added tie breakers to sorting functions that were missing it. Added validation on submitted losses to check if losses were submitted for duplicate workers. We now just take 1 per unique worker per type of loss. [Associated ticket](https://linear.app/upshot/issue/ORA-1509/add-reward-ready-queue). --------- Co-authored-by: Diego Campo <xmariachi@gmail.com> Co-authored-by: Tyler <tyler@cyb3r.space>
- Loading branch information
1 parent
57aa41d
commit a22b76b
Showing
20 changed files
with
1,105 additions
and
911 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
Oops, something went wrong.