forked from Qortal/qortal
Don't submit online accounts if node is more than 2 hours of sync.
This commit is contained in:
parent
96cdf4a87e
commit
38faed5799
@ -280,6 +280,12 @@ public class OnlineAccountsManager extends Thread {
|
||||
return;
|
||||
}
|
||||
|
||||
// Don't submit if we're more than 2 hours out of sync
|
||||
final Long minLatestBlockTimestamp = now - (2 * 60 * 60 * 1000L);
|
||||
if (!Controller.getInstance().isUpToDate(minLatestBlockTimestamp)) {
|
||||
return;
|
||||
}
|
||||
|
||||
List<MintingAccountData> mintingAccounts;
|
||||
try (final Repository repository = RepositoryManager.getRepository()) {
|
||||
mintingAccounts = repository.getAccountRepository().getMintingAccounts();
|
||||
|
Loading…
x
Reference in New Issue
Block a user