From f7ac9ae37a5e6059a45e7e62302fdf90ebeb1350 Mon Sep 17 00:00:00 2001 From: woodser Date: Sat, 13 Apr 2024 09:55:00 -0400 Subject: [PATCH] show sync progress before sync starts on startup --- .../java/haveno/core/xmr/wallet/XmrWalletService.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java b/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java index 6c3387fe77..cfc5055c14 100644 --- a/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java +++ b/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java @@ -999,7 +999,10 @@ public class XmrWalletService { private void syncWalletWithProgress() { - // update sync progress in realtime with native wallet + // show sync progress + updateSyncProgress(); + + // get sync notifications from native wallet if (wallet instanceof MoneroWalletFull) { wallet.sync(new MoneroWalletListener() { @Override @@ -1011,8 +1014,7 @@ public class XmrWalletService { return; } - // poll wallet for progress - updateSyncProgress(); + // poll monero-wallet-rpc for progress wallet.startSyncing(xmrConnectionService.getRefreshPeriodMs()); CountDownLatch latch = new CountDownLatch(1); syncLooper = new TaskLooper(() -> {