Allow online account submission in all cases when in recovery mode.

This commit is contained in:
CalDescent 2022-06-20 22:50:41 +01:00
parent 899a6eb104
commit b00e1c8f47

View File

@ -286,9 +286,9 @@ public class OnlineAccountsManager extends Thread {
return; return;
} }
// Don't submit if we're more than 2 hours out of sync // Don't submit if we're more than 2 hours out of sync (unless we're in recovery mode)
final Long minLatestBlockTimestamp = now - (2 * 60 * 60 * 1000L); final Long minLatestBlockTimestamp = now - (2 * 60 * 60 * 1000L);
if (!Controller.getInstance().isUpToDate(minLatestBlockTimestamp)) { if (!Controller.getInstance().isUpToDate(minLatestBlockTimestamp) && !Synchronizer.getInstance().getRecoveryMode()) {
return; return;
} }