From 8980a8ec607d3b7271b34aa34ffe4d544858e647 Mon Sep 17 00:00:00 2001 From: woodser Date: Sun, 10 Jul 2022 19:03:36 -0400 Subject: [PATCH] sync wallet when opened --- .../main/java/bisq/core/btc/wallet/XmrWalletService.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/bisq/core/btc/wallet/XmrWalletService.java b/core/src/main/java/bisq/core/btc/wallet/XmrWalletService.java index 07a57abb55..14234cfc92 100644 --- a/core/src/main/java/bisq/core/btc/wallet/XmrWalletService.java +++ b/core/src/main/java/bisq/core/btc/wallet/XmrWalletService.java @@ -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();