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

fix(wallet-ffi): don't block on start #5437

Merged

Conversation

brianp
Copy link
Contributor

@brianp brianp commented Jun 2, 2023

Description

Currently the ffi call to create and start the wallet will block until connections have been made. Instead return the Wallet asap, and throw the previously blocking call into an async non blocking call and let it complete on its own time.

Motivation and Context

The wallet freezes up for a duration while connecting to tor and the base node if the user has low connectivity. This prevents all other local actions from functioning. Instead we can return an initialized wallet that doesn't have connectivity allowing for local manipulation and gain connectivity in the background.

How Has This Been Tested?

CI only

What process can a PR reviewer use to test or verify this change?

Watch for green checks

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

Currently the ffi call to create and start the wallet will block until
connections have been made. Instead return the Wallet asap, and throw
the previously blocking call into an async non blocking call and let it
complete on its own time.
@brianp brianp changed the title enhancement(wallet-ffi): don't block on start fix(wallet-ffi): don't block on start Jun 2, 2023
@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Jun 2, 2023
@github-actions
Copy link

github-actions bot commented Jun 2, 2023

Test Results (CI)

1 148 tests  ±0   1 148 ✔️ ±0   10m 9s ⏱️ - 5m 37s
     37 suites ±0          0 💤 ±0 
       1 files   ±0          0 ±0 

Results for commit 0932f87. ± Comparison against base commit 0c1e576.

@github-actions
Copy link

github-actions bot commented Jun 2, 2023

Test Results (Integration tests)

  2 files  +  2  12 suites  +12   18m 19s ⏱️ + 18m 19s
29 tests +29  26 ✔️ +26  0 💤 ±0  3 +3 
33 runs  +33  28 ✔️ +28  0 💤 ±0  5 +5 

For more details on these failures, see this check.

Results for commit 0932f87. ± Comparison against base commit 0c1e576.

@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Jun 6, 2023
@stringhandler stringhandler merged commit 27fe8d9 into tari-project:development Jun 6, 2023
@brianp brianp deleted the wallet-free-from-tor-redux branch June 6, 2023 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants