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

Tame wallet manager better #9567

Merged

Conversation

CriesofCarrots
Copy link
Contributor

Problem

#9262 and #9555 weren't quite the right approach, due to the default keypair; wallet manager should only be initialized when a signer is actually needed from a remote wallet, not any time config is set to a remote wallet url.

Summary of Changes

  • Pass wallet_manager as &mut, and only initialize/read_devices when needed and not already done.

@CriesofCarrots CriesofCarrots added the automerge Merge this Pull Request automatically once CI passes label Apr 18, 2020
@codecov
Copy link

codecov bot commented Apr 18, 2020

Codecov Report

Merging #9567 into master will decrease coverage by 0.0%.
The diff coverage is 96.6%.

@@           Coverage Diff            @@
##           master   #9567     +/-   ##
========================================
- Coverage    80.6%   80.5%   -0.1%     
========================================
  Files         279     279             
  Lines       63414   63410      -4     
========================================
- Hits        51112   51089     -23     
- Misses      12302   12321     +19     

@solana-grimes solana-grimes merged commit 679e786 into solana-labs:master Apr 18, 2020
mergify bot pushed a commit that referenced this pull request Apr 18, 2020
automerge

(cherry picked from commit 679e786)
solana-grimes pushed a commit that referenced this pull request Apr 18, 2020
@garious
Copy link
Contributor

garious commented Apr 18, 2020

Bizarre type. Why &mut Option<Arc<T>> and not Option<&mut T> or Option<Arc<RwLock<T>>>?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants