-
Notifications
You must be signed in to change notification settings - Fork 88
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
Improve fee estimation in internal wallet #1315
Conversation
bbf908d
to
949aaff
Compare
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 TransactionThis is using ada-only outputs for better comparability.
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.
End-To-End Benchmark ResultsThis page is intended to collect the latest end-to-end benchmarks results produced by Hydra's Continuous Integration system from the latest 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-02-21 17:57:17.038809719 UTC Baseline Scenario
Baseline Scenario
|
This is not exactly minimum fee as this is quite hard to estimate correctly (high fees on a tx will increase fees) and an overestimation of 0.1 ADA is acceptable.
Using the cardano-ledger api we improve the fee estimation to be within 0.1 ADA of the minimum fee.
This is needed as we will sign the transaction after coverFee and the fee need to be high enough to also cover the additional tx size cost.
b15b69f
to
2759d2f
Compare
🪙 Using the cardano-ledger we improve the fee estimation to be within
0.1
ADA of the minimum fee.🪙 Practically, this reduces cost of initializing and aborting a single party head from about
6.4
ADA to only3.7
ADA.🪙 There is still some overestimation in
coverFees
, however this is only due to the commit transaction requiring (usually) two witnesses, while all other txs would only be fine with one.XXX
note how to address the witness overestimation / make commit more flexible in the future.