-
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
Fix FaucetFailedToBuildTx in smoke test #1384
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 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-04-08 09:49:19.141682899 UTC Baseline Scenario
Baseline Scenario
|
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.
The change is fine, the test assertions are / were confusing and I left some comments to maybe improve them (as we touch this code now).
To work for sanchonet
Let the makeTransactionBodyAutoBalance do its work.
d3eeeee
to
4183ce6
Compare
- Generate the arbitrary actor within the forAll expression. - Added an explanatory comment regarding why we do not set outputs while building the transaction. - Make use of selectLovelace helper instead.
9efc488
to
ec430b2
Compare
Our smoke test requires funds from the faucet to run. Once completed, it constructs a transaction to return the provided funds back to the faucet. To determine the amount of value to be returned, it subtracts a fee calculation from the remaining balance.
However, there is an issue with our fee calculation, causing the smoke test to fail with FaucetFailedToBuildTx {reason = TxBodyErrorAdaBalanceNegative (Coin (-176))}.
This PR aims to resolve the issue by removing the incorrect fee calculation and allowing the transaction to automatically balance itself during construction.