forked from Qortal/qortal
Disabled all arbitrary data manager threads if QDN is disabled in the settings.
This commit is contained in:
parent
6436daca08
commit
b774583f28
@ -79,6 +79,12 @@ public class ArbitraryDataCleanupManager extends Thread {
|
|||||||
while (!isStopping) {
|
while (!isStopping) {
|
||||||
Thread.sleep(30000);
|
Thread.sleep(30000);
|
||||||
|
|
||||||
|
// Don't run if QDN is disabled
|
||||||
|
if (!Settings.getInstance().isQdnEnabled()) {
|
||||||
|
Thread.sleep(60 * 60 * 1000L);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Long now = NTP.getTime();
|
Long now = NTP.getTime();
|
||||||
if (now == null) {
|
if (now == null) {
|
||||||
// Don't attempt to make decisions if we haven't synced our time yet
|
// Don't attempt to make decisions if we haven't synced our time yet
|
||||||
|
@ -74,6 +74,12 @@ public class ArbitraryDataManager extends Thread {
|
|||||||
while (!isStopping) {
|
while (!isStopping) {
|
||||||
Thread.sleep(2000);
|
Thread.sleep(2000);
|
||||||
|
|
||||||
|
// Don't run if QDN is disabled
|
||||||
|
if (!Settings.getInstance().isQdnEnabled()) {
|
||||||
|
Thread.sleep(60 * 60 * 1000L);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
List<Peer> peers = Network.getInstance().getHandshakedPeers();
|
List<Peer> peers = Network.getInstance().getHandshakedPeers();
|
||||||
|
|
||||||
// Disregard peers that have "misbehaved" recently
|
// Disregard peers that have "misbehaved" recently
|
||||||
|
@ -73,6 +73,12 @@ public class ArbitraryDataStorageManager extends Thread {
|
|||||||
while (!isStopping) {
|
while (!isStopping) {
|
||||||
Thread.sleep(1000);
|
Thread.sleep(1000);
|
||||||
|
|
||||||
|
// Don't run if QDN is disabled
|
||||||
|
if (!Settings.getInstance().isQdnEnabled()) {
|
||||||
|
Thread.sleep(60 * 60 * 1000L);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Long now = NTP.getTime();
|
Long now = NTP.getTime();
|
||||||
if (now == null) {
|
if (now == null) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user