-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Return unopened accounts #4066
Return unopened accounts #4066
Conversation
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.
It doesn't make sense to return an error if one of the accounts is not opened yet, it's unfortunate it wasn't caught during testing. Thanks for the PR!
I targeted this PR against the develop branch but maybe v24 should get a patched version as well? |
When it gets merged into develop it can be cherry picked into v24 branch, so it's fine. |
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.
Looks good
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.
👍
* Remove account check error and return unopened account balance * Update unit tests for accounts_balances * Remove unneeded account_info variable * Improve the comments a little * Unit test case for unopened account with receivables Co-authored-by: Dimitrios Siganos <dimitris@siganos.org>
* Remove account check error and return unopened account balance * Update unit tests for accounts_balances * Remove unneeded account_info variable * Improve the comments a little * Unit test case for unopened account with receivables Co-authored-by: Dimitrios Siganos <dimitris@siganos.org>
* Remove account check error and return unopened account balance * Update unit tests for accounts_balances * Remove unneeded account_info variable * Improve the comments a little * Unit test case for unopened account with receivables Co-authored-by: Dimitrios Siganos <dimitris@siganos.org>
Documentation changes for V24/V25: nanocurrency/nano-docs#670 |
Fix for issue #4064
accounts_balances
RPC was changed in 580c3c1That also changed the response of unopened accounts into an error message
The response of
accounts_balances
should mimicaccount_balance
and this PR makesaccounts_balances
return the actual balance values of unopened accounts the way it did before 580c3c1Invalid accounts will still return an error