mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
sync wallet when opened
This commit is contained in:
parent
008210abf6
commit
8980a8ec60
@ -466,10 +466,15 @@ public class XmrWalletService {
|
||||
|
||||
// open wallet
|
||||
try {
|
||||
// open wallet
|
||||
log.info("Opening wallet " + config.getPath());
|
||||
walletRpc.openWallet(config);
|
||||
log.info("Syncing wallet " + config.getPath());
|
||||
|
||||
// start syncing wallet in background
|
||||
walletRpc.startSyncing(connectionsService.getDefaultRefreshPeriodMs());
|
||||
|
||||
// sync wallet (blocks)
|
||||
walletRpc.sync();
|
||||
return walletRpc;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
Loading…
Reference in New Issue
Block a user