Skip to content
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

Hydra node cannot handle time conversion once 3k slots have passed #523

Merged
merged 28 commits into from
Sep 28, 2022

Conversation

v0d1ch
Copy link
Contributor

@v0d1ch v0d1ch commented Sep 28, 2022

fix #487

v0d1ch and others added 28 commits September 28, 2022 13:43
This will have time conversions fail after some point
Test are still failing though ase we are passing a const time handle.
This one uses also the interpreter and is more consistent with the
conversion in the other direction. Under the hood, it should be using
the same functionality.
Any PastHorizonException will include these locations
This is to make clear we are actually only generating one timeHandle at
a time
 - We do this so that we have better access to generated system time
- getTimeHandle is now moved to TimeHandle module since arbitrary instance
needs it
- getTimeHandle is now moved to TimeHandle module since arbitrary instance
needs it
- Add a TODO about converting TimeHandleSpec to property test
@github-actions
Copy link

Transactions Costs

Sizes and execution budgets for Hydra protocol transactions. Note that unlisted parameters are currently using arbitrary values and results are not fully deterministic and comparable to previous runs.

Metadata
Generated at 2022-09-28 12:04:43.807270781 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Cost of Init Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 4832 11.75 4.68 0.49
2 5037 11.47 4.51 0.50
3 5242 13.00 5.08 0.52
5 5653 17.14 6.69 0.59
10 6678 29.50 11.52 0.77
46 14059 98.52 38.04 1.84

Cost of Commit Transaction

Currently only one UTxO per commit allowed (this is about to change soon)

UTxO Tx size % max Mem % max CPU Min fee ₳
1 5768 19.81 7.99 0.62

Cost of CollectCom Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 13128 21.44 8.60 0.96
2 13450 37.29 15.11 1.15
3 13846 57.25 23.37 1.39
4 14024 76.12 31.23 1.61

Cost of Close Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 9323 8.19 3.36 0.65
2 9492 8.97 3.81 0.67
3 9653 9.75 4.27 0.68
5 9993 11.31 5.17 0.72
10 10883 16.04 7.75 0.81
30 12237 22.56 8.61 0.93
55 14715 34.23 12.98 1.17

Cost of Contest Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 9331 8.16 3.34 0.65
2 9527 9.34 3.95 0.67
3 9658 9.72 4.24 0.68
5 10055 12.12 5.47 0.73
10 10848 15.57 7.56 0.81
30 14217 32.23 17.00 1.16
43 16361 42.37 22.86 1.38

Cost of Abort Transaction

Some variation because of random mixture of still initial and already committed outputs.

Parties Tx size % max Mem % max CPU Min fee ₳
1 13779 26.61 11.36 1.05
2 13884 39.31 16.68 1.20
3 14212 59.98 26.33 1.45
4 14183 72.78 31.14 1.59
5 13934 81.23 34.74 1.67

Cost of FanOut Transaction

Involves spending head output and burning head tokens. Uses ada-only UTxO for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 13550 10.64 4.61 0.87
2 13586 12.46 5.61 0.89
3 13622 13.68 6.37 0.91
5 13688 16.72 8.12 0.95
10 13806 24.25 12.49 1.04
50 15240 85.18 47.72 1.85
59 15565 98.60 55.53 2.03

@pgrange pgrange self-requested a review September 28, 2022 13:46
@v0d1ch v0d1ch merged commit a4daab7 into master Sep 28, 2022
@v0d1ch v0d1ch deleted the ensemble/time-horizon-past-3k-slots branch September 28, 2022 13:53
@ch1bo ch1bo changed the title Hydra node cannot handle time conversion once 2k blocks have passed Hydra node cannot handle time conversion once 3k slots have passed Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hydra node cannot handle time conversion once 2k blocks have passed
3 participants