mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-11-17 00:07:49 +00:00
sync wallet when opened
This commit is contained in:
parent
008210abf6
commit
8980a8ec60
1 changed files with 6 additions and 1 deletions
|
@ -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 a new issue