-
Notifications
You must be signed in to change notification settings - Fork 217
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
Can't quit pools when reward account is non-empty #1824
Comments
Reminder to whoever is working on this - uncomment the second part of the "STAKE_POOLS_JOIN_04 - Rewards accumulate and stop" test scenario once this is fixed. |
@rvl yes and no :s.
Then, being able to automatically consume the rewards when quitting will be done as part of a next U/S. Note that we are currently discussing the existence of this "quit" endpoint, which in essence, is against the protocol. Instead, it would probably end-up being merged with the |
When quitting the pool and having rewards earned there is now following error being shown:
One is able to join another pool even if he earned rewards 👌 . |
Context
Steps to Reproduce
Expected behavior
To be clarified. The wallet should either return a clear error explaining that the reward account must be emptied first. Or, the reward should be automatically redeemed when quitting. The latter is perhaps a little nicer in terms of user experience (although quite implicit) but also require more work to fix.
Actual behavior
The server returns a
500 Internal Server Error
after getting an error from the ledger.Resolution
QA
The server now returns a proper error when trying to quit with a non-null reward balance. This is shown as part of STAKE_POOLS_JOIN_04 here: https://github.com/input-output-hk/cardano-wallet/blob/c2fe8f6f42e5edc31434c5bd56d579564a702c51/lib/core-integration/src/Test/Integration/Scenario/API/Shelley/StakePools.hs#L338-L370
However, a user can withdraw its reward "manually" and quit after which, would work just fine as shown in this scenario: https://github.com/input-output-hk/cardano-wallet/blob/c2fe8f6f42e5edc31434c5bd56d579564a702c51/lib/core-integration/src/Test/Integration/Scenario/API/Shelley/StakePools.hs#L170-L218
The text was updated successfully, but these errors were encountered: