-
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
Smoke test failed to recollect funds #967
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.
|
2ad9f96
to
2680d45
Compare
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.
Just attempted a rebase, there's a test failing on CI experiment which might be a red herring
let allLovelace = selectLovelace $ balance @Tx utxo | ||
let utxoValue = balance @Tx utxo | ||
let allLovelace = selectLovelace utxoValue | ||
-- select tokens other than ADA here so we can burn it afterwards |
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.
We can't just burn tokens. Sending them back to the faucet is our only option. So this calculation would be more clear if we would just use utxoValue
and do a <> negateValue (lovelaceToValue fee)
or so
fix #960
Why
Failing smoke-test run:
https://github.com/input-output-hk/hydra/actions/runs/5421129063/jobs/9856170945
Smoke tests do succeed but we are not able to return funds back to the faucet. This happens because we are not selecting all of the value present in the actor utxo but rely that it will contain only ada.
When trying to send back the funds the possible tokens are ignored so the transaction we are trying to post is not valid (there needs to be at least minimum ada next to the token value)
What
Take into account that there might be some tokens present other than ada in the actor utxo. Burn those tokens since we do not need them and send back all remaining lovelace back to the faucet.
Here is one successful run with these changes for preview network