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

Always return to main menu at the end of get_wallet_address #282

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

bigspider
Copy link
Collaborator

@bigspider bigspider commented Sep 9, 2024

Because of the asynchronous nature of the new UX (which returns the response from a command before the 'status' UX is cleared and its callback is called), some race conditions could be triggered in some situations where the G_is_timeout_active.processing global is not properly managed, possibly not clearing the Processing screen, giving the impression that the app is stuck, despite the app correctly returned from previous commands (sending a new command would actually clear it).

In version 2.2.4 of the app, this happened in particular when register_wallet for a relatively complex policy is followed by a silent get_wallet_address (which is indeed common because the client libraries do this automatically).

This PR forces to clear the UX after get_wallet_address; it is likely that other conditions could trigger the same issue, so this is left for a future PR as it requires a rethinking of the state machine managing the UX and the Processing screen.

Opened a separate issue #283 for a more general solution to the problem.

@codecov-commenter
Copy link

codecov-commenter commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.76%. Comparing base (ec81a03) to head (bb6f2c9).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #282   +/-   ##
========================================
  Coverage    84.76%   84.76%           
========================================
  Files           17       17           
  Lines         2186     2186           
========================================
  Hits          1853     1853           
  Misses         333      333           
Flag Coverage Δ
unittests 84.76% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented Sep 9, 2024

@bigspider bigspider merged commit 8751400 into develop Sep 9, 2024
145 checks passed
@bigspider bigspider deleted the processing-glitch branch September 9, 2024 16:39
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