|
|
@ -436,9 +436,6 @@ public class Controller extends Thread { |
|
|
|
return; // Not System.exit() so that GUI can display error
|
|
|
|
return; // Not System.exit() so that GUI can display error
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Import current trade bot states and minting accounts if they exist
|
|
|
|
|
|
|
|
Controller.importRepositoryData(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Rebuild Names table and check database integrity
|
|
|
|
// Rebuild Names table and check database integrity
|
|
|
|
NamesDatabaseIntegrityCheck namesDatabaseIntegrityCheck = new NamesDatabaseIntegrityCheck(); |
|
|
|
NamesDatabaseIntegrityCheck namesDatabaseIntegrityCheck = new NamesDatabaseIntegrityCheck(); |
|
|
|
namesDatabaseIntegrityCheck.rebuildAllNames(); |
|
|
|
namesDatabaseIntegrityCheck.rebuildAllNames(); |
|
|
@ -456,6 +453,9 @@ public class Controller extends Thread { |
|
|
|
return; // Not System.exit() so that GUI can display error
|
|
|
|
return; // Not System.exit() so that GUI can display error
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Import current trade bot states and minting accounts if they exist
|
|
|
|
|
|
|
|
Controller.importRepositoryData(); |
|
|
|
|
|
|
|
|
|
|
|
LOGGER.info("Starting controller"); |
|
|
|
LOGGER.info("Starting controller"); |
|
|
|
Controller.getInstance().start(); |
|
|
|
Controller.getInstance().start(); |
|
|
|
|
|
|
|
|
|
|
@ -655,7 +655,7 @@ public class Controller extends Thread { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Export current trade bot states and minting accounts. |
|
|
|
* Export current trade bot states and minting accounts. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void exportRepositoryData() { |
|
|
|
public void exportRepositoryData() { |
|
|
|
try (final Repository repository = RepositoryManager.getRepository()) { |
|
|
|
try (final Repository repository = RepositoryManager.getRepository()) { |
|
|
|
repository.exportNodeLocalData(); |
|
|
|
repository.exportNodeLocalData(); |
|
|
|
|
|
|
|
|
|
|
|