-
Notifications
You must be signed in to change notification settings - Fork 87
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
check commits are reimbursed in nu head #670
check commits are reimbursed in nu head #670
Conversation
Transactions CostsSizes and execution budgets for Hydra protocol transactions. Note that unlisted parameters are currently using
Cost of Init Transaction
Cost of Commit TransactionCurrently only one UTxO per commit allowed (this is about to change soon)
Cost of CollectCom Transaction
Cost of Close Transaction
Cost of Contest Transaction
Cost of Abort TransactionSome variation because of random mixture of still initial and already committed outputs.
Cost of FanOut TransactionInvolves spending head output and burning head tokens. Uses ada-only UTxO for better comparability.
|
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.
🚢
73432c2
to
8cb9984
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.
Interestingly the DropOneCommitOutput
mutation fails now. A possible solution could be to check that all PTs are burned in the abortTx
(e.g. by the head validator).
b6445f6
to
2e19048
Compare
eabf27b
to
f0356a6
Compare
Test Results268 tests - 11 262 ✔️ - 11 13m 22s ⏱️ - 1m 38s Results for commit dc6d7d0. ± Comparison against base commit 7f5e25c. This pull request removes 11 tests.
♻️ This comment has been updated with latest results. |
9d00143
to
3372c46
Compare
We should check the output of abort with the inputs of the transaction and not the output.
Not all the inputs we explore are commits, some may be intials so we tolerate for the absence of datum as intial have no datum.
We explicitly check that one can not try to spend an initial in a collectCom
Head datum check has been removed from the commit validator
3372c46
to
fedcb8c
Compare
Two commits with the same datum would only require one corresponding output to have the validator pass.
newInput <- arbitrary | ||
-- XXX: Ideally we should need to modify the PT to simulate a proper new commit | ||
-- FIXME: this shouldn't be green | ||
pure $ AddInput newInput output |
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.
@v0d1ch and me added this to highlight that this PR is not completely solving the gap. We need to make sure the commits are completely reimbursed, i.e. not two identical commits can be reimbursed by one output. A follow-up PR will address this (and the corresponding FIXME in the script)
This PR is a step into the right direction but there will be a follow-up one to address a gap in the
checkAbort
where we should check that two identical commits can not be reimbursed by one output.To check before merging:
Documentation is up to date