disable repeat sync to latest target height after first sync

This commit is contained in:
woodser 2025-10-06 16:33:09 -04:00
parent f21bb3a3ed
commit eaf23af15f
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF

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();