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

Account tracker improvement #331

Merged
merged 7 commits into from
Feb 4, 2021
Merged

Account tracker improvement #331

merged 7 commits into from
Feb 4, 2021

Conversation

estebanmino
Copy link
Contributor

@estebanmino estebanmino commented Feb 2, 2021

There were 2 issues on the AccountTrackerController

  1. For some reason we were using ethjs-query only on this controller, I moved to eth-query since it was used for other controllers, including the extension's controllers
  2. We were seeing some cases where getBalance calls were stuck, making the polling process of this controller a heavy process. If the getBalance call was stuck, the controller never dropped it and since that process is every 500ms, made the mobile app behave poorly, specially on android. Now if the response doesn't get in time, the getBalance call will be dismissed and it will continue to the next poll iteration using safelyExecuteWithTimeout.

There's also a new util query that was on the TransactionController but now is used in AccountTrackerController too, so I made it one.

@estebanmino estebanmino marked this pull request as ready for review February 2, 2021 20:20
@estebanmino estebanmino requested a review from a team as a code owner February 2, 2021 20:20
@omnat
Copy link

omnat commented Feb 3, 2021

@rickycodes will review this PR, and include this in upcoming controllers release

rickycodes
rickycodes previously approved these changes Feb 4, 2021
@estebanmino estebanmino merged commit 4381e4d into develop Feb 4, 2021
@estebanmino estebanmino deleted the account-tracker branch February 4, 2021 19:34
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* fix

* test

* test

* prettier

* log

* safelyExecuteWithTimeouttest

* format
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* fix

* test

* test

* prettier

* log

* safelyExecuteWithTimeouttest

* format
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.

3 participants