hydra
hydra copied to clipboard
feat(node): configurable peers
Fixes #240
⚠️ by introducing the use of TVar and forever we have changed the behaviour of thread connect.
now it will restart in case there is a problem with the subscription worker.
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-08-22 08:47:37.247134717 UTC |
| Max. memory units | 14000000.00 |
| Max. CPU units | 10000000000.00 |
| Max. tx size (kB) | 16384 |
Cost of Init Transaction
| Parties | Tx size | % max Mem | % max CPU |
|---|---|---|---|
| 1 | 4832 | 11.34 | 4.51 |
| 2 | 5041 | 12.18 | 4.80 |
| 3 | 5241 | 13.41 | 5.25 |
| 5 | 5653 | 20.01 | 7.87 |
| 10 | 6678 | 27.35 | 10.63 |
| 45 | 13855 | 99.38 | 38.45 |
Cost of Commit Transaction
Currently only one UTxO per commit allowed (this is about to change soon)
| UTxO | Tx size | % max Mem | % max CPU |
|---|---|---|---|
| 1 | 5768 | 19.93 | 8.06 |
Cost of CollectCom Transaction
| Parties | Tx size | % max Mem | % max CPU |
|---|---|---|---|
| 1 | 13128 | 21.36 | 8.56 |
| 2 | 13379 | 36.37 | 14.73 |
| 3 | 13702 | 55.01 | 22.45 |
| 4 | 14132 | 78.39 | 32.17 |
Cost of Close Transaction
| Parties | Tx size | % max Mem | % max CPU |
|---|---|---|---|
| 1 | 9327 | 8.19 | 3.36 |
| 2 | 9393 | 8.49 | 3.33 |
| 3 | 9655 | 9.75 | 4.27 |
| 5 | 10021 | 11.75 | 5.34 |
| 10 | 10846 | 15.65 | 7.60 |
| 30 | 14218 | 32.63 | 17.16 |
| 65 | 15708 | 39.01 | 14.77 |
Cost of Contest Transaction
| Parties | Tx size | % max Mem | % max CPU |
|---|---|---|---|
| 1 | 9331 | 8.16 | 3.34 |
| 2 | 9528 | 9.38 | 3.96 |
| 3 | 9661 | 9.72 | 4.24 |
| 5 | 9980 | 11.28 | 5.15 |
| 10 | 10847 | 15.62 | 7.57 |
| 30 | 14215 | 32.05 | 16.92 |
| 43 | 16334 | 42.34 | 22.86 |
Cost of Abort Transaction
| Parties | Tx size | % max Mem | % max CPU |
|---|---|---|---|
| 1 | 13494 | 22.50 | 9.35 |
| 2 | 13817 | 38.24 | 16.27 |
| 3 | 14077 | 55.76 | 23.79 |
| 4 | 13825 | 63.38 | 26.98 |
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 |
|---|---|---|---|
| 1 | 13549 | 10.89 | 4.71 |
| 2 | 13455 | 11.40 | 5.19 |
| 3 | 13490 | 12.92 | 6.07 |
| 5 | 13628 | 16.64 | 8.10 |
| 10 | 13744 | 23.57 | 12.23 |
| 50 | 15181 | 84.50 | 47.45 |
| 59 | 15634 | 98.98 | 55.68 |
Unit Test Results
251 tests +4 245 :heavy_check_mark: +4 11m 50s :stopwatch: -55s 89 suites ±0 6 :zzz: ±0 5 files ±0 0 :x: ±0
Results for commit a7f965ed. ± Comparison against base commit 1e7a7d12.
:recycle: This comment has been updated with latest results.
While the implementation of this is fine, we decided to not go forward with this and even cancel #240. See https://github.com/input-output-hk/hydra-poc/pull/460#issuecomment-1222180213 for the rationale.