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 EPOCH STS rule to feed correct Pool state into NEWPP #1593

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

uroboros
Copy link
Contributor

The EPOCH rule in the exec spec was feeding the incorrect Pool state into the NEWPP rule.
(The formal spec describes this correctly)

Before this change, NEWPP was getting the Pool state from before POOLREAP being applied, but the Utxo state from after the POOLREAP.

This meant that the NEWPP rule would often fail on

(Coin oblgCurr) == (_deposited utxoSt) ?! UnexpectedDepositPot

because the RHS deposit pot would reflect the reaped pools (with deposits flowing out to rewards/treasury) while the LHS (which depends on the number of pools) would still count all the pools, pre-POOLREAP.

@nc6 nc6 merged commit fc09235 into master Jun 30, 2020
@iohk-bors iohk-bors bot deleted the uroboros/fix_epoch_newpp branch June 30, 2020 10:40
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.

2 participants