-
Notifications
You must be signed in to change notification settings - Fork 13
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
Cannot register and deregister same stake credential #547
Cannot register and deregister same stake credential #547
Conversation
This addresses issue #512
e5935a3
to
af99909
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.
I think all the changes in Ledger.Certs
and Ledger.Epoch
are just reverting formatting/cleanup that I've done over a month ago. Can you revert those two files?
Also, note that Ledger.Utxo
is a literate file, so please make sure it looks good in the PDF. In particular, the decision procedure should be hidden, and ValidCertDeposits
might be better explained in prose than shown in a figure.
Otherwise, I think this looks pretty good!
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.
Ah, sorry, I spoke too soon. I wrote
Check the correctness of refunds in
UTXO
in the issue, but what I meant was to check it there instead of in CERTS
. So it's also necessary to remove those checks from CERTS
, because that's what actually prevents us from registering and deregistering in the same transaction. I think the best way to do that is to remove deposits
from CertEnv
and all the other environments in the file and then follow all the errors.
Note that this also means that ValidCertDeposits
needs to be slightly adjusted, so that all the removed checks are done there. In particular, it also needs to check deposit amounts, so it needs to have a Deposits
argument rather than ℙ DepositPurpose
. I don't think it should affect much though.
I made (most of) those changes to try to ensure that the vertical vector formatting doesn't get confused by the line breaks. (The insertion of the |
@UlfNorell do you have time to work on these changes? I'd like to get back to finishing the Btw, I merged your branch into the one on which this PR is based and fill the remaining holes and rewrote some of the proofs, so it now type-checks and passes the CI. I suppose you will want to make a new branch off this one like you did last time (assuming you have time to work on this). Thanks!! |
@williamdemeo I'll try to make some progress today. If it's ok with you I'll just push to this branch. Last time was a major change to the way things were done, but now it's just continuing work on the PR. |
Sure, just push to this branch. 👍
…On Thu, Oct 10, 2024, 23:08 Ulf Norell ***@***.***> wrote:
@williamdemeo <https://github.com/williamdemeo> I'll try to make some
progress today. If it's ok with you I'll just push to this branch. Last
time was a major change to the way things were done, but now it's just
continuing work on the PR.
—
Reply to this email directly, view it on GitHub
<#547 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA25MJA6JMKSQ7WCI7QQIMDZ25MMBAVCNFSM6AAAAABMTKIIT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBWGU3DGOBWG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Did something change that affects the vectors? I remember being able to strategically insert newlines in certain places without them affecting how the PDF renders. Also, if I look at |
Ah, sorry, I didn't realize the script output could be manipulated by strategically inserting newlines. I guess nothing needs to be fixed then. 👍🏼 |
@UlfNorell I just merged the latest master, so I suggest a |
Note: this also changes the check for `deregdrep c d` to (DRepDeposit c , d) ∈ deps from (CredentialDeposit c , d) ∈ deps
⟦ ❴ c , e + drepActivity ❵ ∪ˡ dReps , ccKeys ⟧ᵛ | ||
|
||
GOVCERT-deregdrep : | ||
∙ c ∈ dom dReps | ||
∙ (CredentialDeposit c , d) ∈ deps |
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.
Should this have been (DRepDeposit c , d) ∈ deps
? That's what I put in ValidCertDeposits
.
I think I managed moving the checks from |
I just requested a review from @WhatisRT, but I still need to check the pdf. I will do that today. |
@WhatisRT I finished fixing the pdf. I think this PR is good to go 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.
Just some minor stuff, otherwise LGTM
Description
This addresses issue #512
Checklist