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

Mismatch between value actually sent and intended to be sent when utxo does not have sufficient fund #224

Closed
Eggham opened this issue Feb 21, 2022 · 2 comments · Fixed by #225
Labels
bug 🐛 Something isn't working

Comments

@Eggham
Copy link

Eggham commented Feb 21, 2022

The setting is that a Hydra head has been set up between Bob and Carol. Suppose Bob wants to send Carol 123456 Lovelace but the UTxO that Bob chooses to spend has only 123455 Lovelace (1 Lovelace less). In this setting, the transaction still succeeds despite insufficient fund in the chosen UTxO. But the actual amount Carol receives and Bob sends becomes 12345 Lovelace, instead of the intended 123456 Lovelace.

@ch1bo
Copy link
Collaborator

ch1bo commented Feb 21, 2022

Thanks for raising this, I assumed this is using the hydra-tui client and could reproduce the behavior there ... looking into this now.

@ch1bo
Copy link
Collaborator

ch1bo commented Feb 21, 2022

It seems like the TUI is parsing the entered text wrong, e.g. when presented with 450000000 lovelace, the user changes the last digit to 1 -> 450000001, the hydra-tui at version 0.3.0 parses a 45000000!

Note that the hydra-tui is a demonstrative client and is not as well-tested as the hydra-node itself.

@ch1bo ch1bo added the bug 🐛 Something isn't working label Feb 21, 2022
ch1bo added a commit that referenced this issue Feb 21, 2022
Also shows focus, invalid values and the maximum amount available.
Fixes issue #224
@ch1bo ch1bo linked a pull request Feb 21, 2022 that will close this issue
ch1bo added a commit that referenced this issue Feb 21, 2022
Also shows focus, invalid values and the maximum amount available.
Fixes issue #224
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants