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

Switch explorer to run on preview & clear TVL on Finalized #1397

Merged
merged 6 commits into from
Apr 18, 2024

Conversation

ffakenz
Copy link
Contributor

@ffakenz ffakenz commented Apr 17, 2024

🔄 We switch the explorer to work on preview after the sanchonet respin

This is because sanchonet depends on cardano-node running on 8.10.0-pre, and this version brings breaking changes to the cardano-api (which involves plutus changes).
For that, we would need to use this branch #1388, but it makes the whole thing likely more complicated and not something we want to merge anyways before we don't have a 8.10 cardano-node release which is also supported on preview/preprod and mainnet.

  • This PR also fixes the misleading TVL being displayed as it was not cleared on Finalized.

  • CHANGELOG updated or not needed
  • Documentation updated or not needed
  • Haddocks updated or not needed
  • No new TODOs introduced or explained herafter

Copy link

github-actions bot commented Apr 17, 2024

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 2024-04-18 08:07:41.632416449 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial bccf2a430c016bc960fbf31b02694011cd399d20da8882aac9d33611 4110
νCommit 56b0f0b597150e619c76bed60683f3b1e42d7bc0685ed951b882bfc5 1975
νHead 86bff95ba20e9d1d1b34899a56d86bbacc9fed999260b27dcc92d128 9351
μHead 88f533cf67cd0fc93d7d9ccf0a8b1d69ffd1208a825efbebbc1d36ba* 4213
  • The minting policy hash is only usable for comparison. As the script is parameterized, the actual script is unique per Head.

Cost of Init Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 4794 8.97 3.44 0.46
2 4996 10.61 4.05 0.49
3 5197 12.60 4.82 0.52
5 5597 16.43 6.29 0.57
10 6604 26.16 10.02 0.72
47 14043 98.08 37.64 1.83

Cost of Commit Transaction

This is using ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 594 10.24 4.04 0.29
2 782 13.88 5.64 0.34
3 968 17.66 7.29 0.39
5 1345 25.66 10.74 0.49
10 2277 48.19 20.30 0.79
19 3960 97.83 40.79 1.41

Cost of CollectCom Transaction

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 544 16.56 6.55 0.36
2 112 654 26.34 10.51 0.47
3 171 764 39.14 15.72 0.61
4 226 874 51.72 20.94 0.76
5 284 984 65.94 26.90 0.92
6 339 1099 87.56 35.67 1.16

Cost of Close Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 588 8.34 4.61 0.28
2 802 9.36 5.99 0.30
3 866 9.75 6.73 0.32
5 1254 11.80 9.49 0.37
10 1829 15.00 14.46 0.46
50 8017 50.66 62.96 1.37

Cost of Contest Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 573 8.24 4.39 0.27
2 831 9.88 6.19 0.31
3 843 9.70 6.54 0.31
5 1253 12.18 9.54 0.37
10 2035 16.87 15.74 0.49
50 8200 51.79 64.02 1.39

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 4670 17.13 7.40 0.55
2 4738 26.85 11.63 0.66
3 4892 41.48 18.13 0.83
4 5083 58.24 25.59 1.03
5 5147 73.93 32.47 1.21

Cost of FanOut Transaction

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

Parties UTxO UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
5 0 0 4628 8.06 3.37 0.44
5 1 57 4661 9.00 3.99 0.46
5 5 283 4796 13.40 6.75 0.52
5 10 570 4967 19.58 10.49 0.60
5 20 1139 5306 30.98 17.57 0.76
5 30 1710 5650 42.64 24.76 0.92
5 40 2277 5986 53.96 31.81 1.08
5 50 2846 6325 65.50 38.95 1.24
5 79 4497 7309 99.42 59.86 1.71

End-To-End Benchmark Results

This page is intended to collect the latest end-to-end benchmarks results produced by Hydra's Continuous Integration system from the latest master code.

Please take those results with a grain of salt as they are currently produced from very limited cloud VMs and not controlled hardware. Instead of focusing on the absolute results, the emphasis should be on relative results, eg. how the timings for a scenario evolve as the code changes.

Generated at 2024-04-18 08:10:01.133314759 UTC

Baseline Scenario

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 22.909644624
P99 109.94615104000013ms
P95 32.63687859999999ms
P50 20.123349500000003ms
Number of Invalid txs 0

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 4.173332865
P99 6.722058309999954ms
P95 5.0232908999999974ms
P50 4.031276500000001ms
Number of Invalid txs 0

Copy link

github-actions bot commented Apr 17, 2024

Test Results

427 tests  ±0   418 ✅ ±0   14m 51s ⏱️ -1s
139 suites ±0     9 💤 ±0 
  5 files   ±0     0 ❌ ±0 

Results for commit 87dbfa5. ± Comparison against base commit fcc1c40.

♻️ This comment has been updated with latest results.

@ffakenz ffakenz force-pushed the fix-explorer-sanchonet-respin branch from 62dc0aa to 1b92511 Compare April 18, 2024 07:45
@ffakenz ffakenz force-pushed the fix-explorer-sanchonet-respin branch from 1b92511 to b01a9c1 Compare April 18, 2024 07:46
So it only consider value locked when the head is initializing, open or closing.
Becuase the current does not observe our opened head.
@ffakenz ffakenz marked this pull request as ready for review April 18, 2024 08:17
@ffakenz ffakenz changed the title Fix explorer to run on preview after the sanchonet respin Switch explorer to run on preview & clear TVL on Finalized Apr 18, 2024
@ffakenz ffakenz self-assigned this Apr 18, 2024
@ffakenz ffakenz merged commit c63cd39 into master Apr 18, 2024
21 checks passed
@ffakenz ffakenz deleted the fix-explorer-sanchonet-respin branch April 18, 2024 09:02
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.

2 participants