-
Notifications
You must be signed in to change notification settings - Fork 84
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 that value is preserved in v_head #702
Conversation
Transactions CostsSizes and execution budgets for Hydra protocol transactions. Note that unlisted parameters are currently using
Script summary
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.
|
63d5a23
to
c94d6cf
Compare
Test Results274 tests - 11 268 ✔️ - 11 11m 45s ⏱️ - 2m 23s Results for commit 0ce2b93. ± Comparison against base commit 829332b. This pull request removes 11 tests.
♻️ This comment has been updated with latest results. |
0124816
to
622db1c
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.
Changes look good, but what happened to the close
and contest
benchmarks? Only 10 parties there is a bit odd..
622db1c
to
fdf6242
Compare
@@ -398,7 +398,7 @@ forAllFanout action = | |||
in action utxo tx | |||
& label ("Fanout size: " <> prettyLength (countAssets $ txOuts' tx)) | |||
where | |||
maxSupported = 30 | |||
maxSupported = 39 |
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.
Benchmarks show 45
, but there might be some delta between the generators used in tx-cost
and these tests here. It's fine to only bump it to 39, although we could try higher numbers to test the limits more often.
2e23df0
to
8207d16
Compare
The transactions seem to be memory bound now.
The Eq Value instance is doing a lot of work to make two values equal even if their actual contents (associative lists) are shuffled but consistent.
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.
Now as we know why the close/contest is much smaller I can approve.
Why
According to spec
5.5. rule 6 -> value is preserved
there should be a validator check to make sure the head value is preserved. Note thatcheckAbort
andcheckFanout
head transitions should not contain this check.To check before merging: