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
add MIR changes to Alonzo spec #2579
Conversation
\label{fig:dcert-mir-trans} | ||
\end{figure} | ||
|
||
\begin{figure}[ht] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if it's worth it, but we could get rid of the code duplication in MIR by having a single rule for it and defining an acnt'
to be either of the two options depending on the condition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's true, as I mention in the comment above, that is actually how the code works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to attempt this after the first review, I've done it now, see what you think. It was a bit hard to keep the horizontal space within the table, but I think it looks okay-ish. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should probably make these "reduce copy" changes to the shelley spec as well now...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I've changed the Shelley MIR transitions as well now. The compare nicely now.
644d829
to
3f7569a
Compare
f1c4ce0
to
64b4475
Compare
I somehow broke the latex build, I will fix that tomorrow |
Re-wrote the Shelley MIR transitions to be more compact (in the style newly added to the Alonzo spec). Additionally, added a new check to the Alonzo MIR rule (implementation) that ensures that the Coin valued used in transfers (reserves <-> treasury) is always non-negative.
64b4475
to
156a135
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Additionally, added a new check to the Alonzo MIR rule that ensures that the Coin valued used in transfers (reserves <-> treasury) is always non-negative. This does mean that the predicate serialization has changed, but as this is a governance feature we should be fine (cc @nc6).