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

show proper error when change is below dust threshold #213

Closed
jackstar12 opened this issue Nov 4, 2024 · 2 comments
Closed

show proper error when change is below dust threshold #213

jackstar12 opened this issue Nov 4, 2024 · 2 comments

Comments

@jackstar12
Copy link

Currently, an Insufficient funds for fees error is thrown when the change amount is below dust threshold which is confusing to the user:

throw user_error("Insufficient funds for fees"); // FIXME res::

If this condition is true and no more utxos are available, a proper error should be thrown:

if (change_amount <= dust_threshold) {

E.g. Change is below dust threshold

@jgriffiths
Copy link
Contributor

jgriffiths commented Nov 10, 2024

Hi @jackstar12, thanks for reporting.

This will be fixed in release 0.73.4 which will include this WIP branch with the fix: https://github.com/Blockstream/gdk/tree/dusty_fee the fix is now in master.

Note the error text will be "Fee change below the dust threshold".

@jgriffiths
Copy link
Contributor

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

No branches or pull requests

2 participants