Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix errata 17.2 in protocol version 7 #2569

Merged
merged 1 commit into from
Dec 6, 2021
Merged

Conversation

JaredCorduan
Copy link
Contributor

@JaredCorduan JaredCorduan commented Dec 2, 2021

namely, no longer prefilter the rewards by those who are currently not registered at the start of the reward calculation. cc @ashisherc

closes #2477

@JaredCorduan JaredCorduan requested a review from nc6 December 2, 2021 17:34
potentialRewards' =
if HardForks.forgoRewardPrefilter pp
then potentialRewards
else eval (addrsRew ◁ potentialRewards)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reassuringly, the tests did not pass without this modification. :)

Copy link
Contributor

@nc6 nc6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks fine, but one comment seems dodgy!

eras/shelley/impl/src/Cardano/Ledger/Shelley/HardForks.hs Outdated Show resolved Hide resolved
namely, no longer prefilter the rewards by those who are currently not
registered at the start of the reward calculation.
@JaredCorduan JaredCorduan force-pushed the jc/fix-shelley-errata-17-2 branch from 721db7a to 950b83f Compare December 3, 2021 14:21
@nc6 nc6 merged commit 0c7a78a into master Dec 6, 2021
@iohk-bors iohk-bors bot deleted the jc/fix-shelley-errata-17-2 branch December 6, 2021 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Correct Shelly ledger 17.2
2 participants