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

spec typos: POOLREAP to update fPoolParams, and change variable name kh to hk #1655

Merged
merged 2 commits into from
Jul 14, 2020

Conversation

JaredCorduan
Copy link
Contributor

@JaredCorduan JaredCorduan commented Jul 13, 2020

  • The formal spec did not remove the retiring pools from the fPoolParams mapping in the POOLREAP rule. It was, however, correct in the implementation.

  • In the spec and in the implementation, there was a variable kh in POOLREAP that should have been named hk to be consistent with the rest of the spec.

  • In the POOL transition, the formal spec had backward inequality (but the implementation was correct). The pool cost should be at least as big an the minimum cost.

closes #1654
closes #1656

The formal spec did not remove the retiring pools
from the fPoolParams mapping in the POOLREAP rule.
(it was, however, correct in the implementation).
Additionally, in the spec and in the implementation,
there was a variable kh that should have been hk
to be consistent with the rest of the spec.
@JaredCorduan JaredCorduan requested a review from uroboros as a code owner July 13, 2020 17:47
Copy link
Contributor

@uroboros uroboros left a comment

Choose a reason for hiding this comment

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

👍

@@ -521,6 +522,7 @@ \subsection{Pool Reaping Transition}
~ \\
\varUpdate{\var{retired}} & \varUpdate{\subtractdom} & \varUpdate{\var{stpools}} \\
\varUpdate{\var{retired}} & \varUpdate{\subtractdom} & \varUpdate{\var{poolParams}} \\
\varUpdate{\var{retired}} & \varUpdate{\subtractdom} & \varUpdate{\var{fPoolParams}} \\
Copy link
Contributor

Choose a reason for hiding this comment

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

It's worth noting that removing retirees from fPParams in POOLREAP is benign because fPParams is emptied out in EPOCH just before calling POOLREAP.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

indeed

@nc6 nc6 merged commit cd9eb21 into master Jul 14, 2020
@iohk-bors iohk-bors bot deleted the jc/two-typos-1654 branch July 14, 2020 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants