mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-12-05 05:13:59 +01:00
Change check_repair + certain functions to lock more granularly (#252)
* Rename check-repair -> scan, make lock logic more granular * rustfmt * update owner api implementations where to allow granular locking where required * rustfmt * store init state on startup to determine whether full utxo scan is required for new wallets * rustfmt * fix for init status persist * add start height argument to scan * rustfmt
This commit is contained in:
@@ -243,10 +243,8 @@ where
|
||||
C: NodeClient + 'a,
|
||||
K: keychain::Keychain + 'a,
|
||||
{
|
||||
let mut w_lock = wallet.lock();
|
||||
let w = w_lock.lc_provider()?.wallet_inst()?;
|
||||
let (wallet_refreshed, wallet_info) =
|
||||
owner::retrieve_summary_info(&mut **w, keychain_mask, true, 1)?;
|
||||
owner::retrieve_summary_info(wallet, keychain_mask, true, 1)?;
|
||||
assert!(wallet_refreshed);
|
||||
Ok(wallet_info)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user