-
Notifications
You must be signed in to change notification settings - Fork 152
make drain accounts script handle defragmentation errors #2035
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eranrund
approved these changes
May 23, 2022
cbeck88
commented
May 23, 2022
iamalwaysuncomfortable
approved these changes
May 24, 2022
Co-authored-by: Mike Turner <zaphrod.beeblebrox@gmail.com>
I think in general - if we have the bandwidth on team, it'd be worth looking at refactoring some of the mobilecoind python towards better error handling, maybe updating some of the approaches, and adding a pylint check to CI. I know that's not the highest priority, but potentially worth it if we keep supporting mobilecoind. |
Co-authored-by: Mike Turner <zaphrod.beeblebrox@gmail.com>
Co-authored-by: Mike Turner <zaphrod.beeblebrox@gmail.com>
eranrund
reviewed
May 24, 2022
this failed in jenkins like this:
|
this failed in jenkins like so:
|
cbeck88
added a commit
that referenced
this pull request
May 24, 2022
* make drain accounts script handle defragmentation errors * make it subtract fee from sending amount after successful defragmentation * Update mobilecoind/strategies/drain-accounts.py Co-authored-by: Mike Turner <zaphrod.beeblebrox@gmail.com> * Update mobilecoind/strategies/drain-accounts.py Co-authored-by: Mike Turner <zaphrod.beeblebrox@gmail.com> * Update mobilecoind/strategies/drain-accounts.py Co-authored-by: Mike Turner <zaphrod.beeblebrox@gmail.com> * fix indentation * fix syntax Co-authored-by: Mike Turner <zaphrod.beeblebrox@gmail.com>
cbeck88
added a commit
that referenced
this pull request
May 25, 2022
* make drain accounts script handle defragmentation errors * make it subtract fee from sending amount after successful defragmentation * Update mobilecoind/strategies/drain-accounts.py Co-authored-by: Mike Turner <zaphrod.beeblebrox@gmail.com> * Update mobilecoind/strategies/drain-accounts.py Co-authored-by: Mike Turner <zaphrod.beeblebrox@gmail.com> * Update mobilecoind/strategies/drain-accounts.py Co-authored-by: Mike Turner <zaphrod.beeblebrox@gmail.com> * fix indentation * fix syntax Co-authored-by: Mike Turner <zaphrod.beeblebrox@gmail.com> Co-authored-by: Mike Turner <zaphrod.beeblebrox@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am not sure if there's a better way to detect the error than searching for strings in the details, but this currently seems to me like the best available way.
we may backport this to 1.2
additional context:
This is what an insufficient funds error looks like, in release testing:
This is what it looks like when it's a fragmentation error:
This is where these strings come from in rust code:
mobilecoin/mobilecoind/src/error.rs
Line 91 in 3412a3d