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

Adjust get_unspent_outs return error according to API standard #154

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

everoddandeven
Copy link

This PR includes a small enhancement on the get_unspent_outs method, which returned the error lws::error:account_not_found when the amount received is not enough to satisfy the requested amount, in turn causing the HTTP 403 Forbidden error. A new error lws::error:not_enough_amount has been introduced that replaces lws::error::account_not_found in this specific case, also the bad_request method has been modified to correctly handle this new error and return the HTTP 400 Bad Request error according to the official light wallet API get_unspent_outs specification.

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

Successfully merging this pull request may close these issues.

1 participant