-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DRepDistr: iterate over UMap in chunks.
The DRepDistr was being calculated by iterating over the StakeDistr, which meant that delegations that have only rewards and no UTxOs would be left out. This commit changes the calculation to iterate over the UMap in chunks instead, adding the corresponding rewards and StakeDistr in the calculation and producing a DRepDistr for all DReps that are either registered or one of the eternal ones, irrespective of whether they have an associated StakeDistr. Also add `UMap.umElemDRepDelegatedReward` to get only those rewards that have an active DRep delegation.
- Loading branch information
Showing
12 changed files
with
241 additions
and
85 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
Oops, something went wrong.