-
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
Deadline gets "pushed out" on each contest #716
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.
|
68d3dd3
to
4b9781b
Compare
c440a93
to
7402b75
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.
Only the contestation period needs to be checked now. Otherwise looks good!
healthyFanoutDatum :: Head.State | ||
healthyFanoutDatum = | ||
Head.Closed | ||
{ snapshotNumber = 1 | ||
, utxoHash = toBuiltin $ hashUTxO @Tx healthyFanoutUTxO | ||
, parties = partyToChain <$> arbitrary `generateWith` 42 | ||
, contestationDeadline = posixFromUTCTime healthyContestationDeadline | ||
, contestationPeriod = healthyContestationPeriod |
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.
Could: even use an arbitrary
contestation period.
65596b7
to
0d97dca
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.
Change looks good now. Only very minor comments on the mutation tests left (flakyness)
- Introduce a mutation - Introduce a validator check for pushing the deadline
…ged in outout. We must prevent a contester to reduce the period for future contesters.
373f393
to
b09742d
Compare
🥧 To be aligned with the contest spec, we are now pushing the contestation deadline using the previously defined contestation period.
🥧 The contestation deadline will only be pushed if the signer of the contest transaction is not the last one to contest.
To check before merging: