disable repeat sync to latest target height after first sync

This commit is contained in:
woodser 2025-10-06 16:33:09 -04:00 committed by woodser
parent f21bb3a3ed
commit ee35e34eaa

View file

@ -1466,7 +1466,7 @@ public class XmrWalletService extends XmrWalletBase {
long time = System.currentTimeMillis();
MoneroRpcConnection sourceConnection = xmrConnectionService.getConnection();
try {
syncWithProgress(true); // repeat sync to latest target height
syncWithProgress(!wasWalletSynced); // repeat sync to latest target height until first sync
} catch (Exception e) {
if (wallet != null) log.warn("Error syncing wallet with progress on startup: " + e.getMessage());
forceCloseMainWallet();