fix RNS synchhronize call

This commit is contained in:
Jürg Schulthess 2025-05-25 12:45:37 +02:00
parent 01fb7346f9
commit 5d5b0ff7b2
2 changed files with 5 additions and 4 deletions

View File

@ -1238,6 +1238,7 @@ public class Controller extends Thread {
LOGGER.info("Shutting down synchronizer"); LOGGER.info("Shutting down synchronizer");
Synchronizer.getInstance().shutdown(); Synchronizer.getInstance().shutdown();
RNSSynchronizer.getInstance().shutdown();
LOGGER.info("Shutting down API"); LOGGER.info("Shutting down API");
ApiService.getInstance().stop(); ApiService.getInstance().stop();
@ -2732,7 +2733,7 @@ public class Controller extends Thread {
peer.setChainTipData(newChainTipData); peer.setChainTipData(newChainTipData);
// Potentially synchronize // Potentially synchronize
Synchronizer.getInstance().requestSync(); RNSSynchronizer.getInstance().requestSync();
} }
private void onRNSNetworkBlockSummariesV2Message(RNSPeer peer, Message message) { private void onRNSNetworkBlockSummariesV2Message(RNSPeer peer, Message message) {
@ -2763,7 +2764,7 @@ public class Controller extends Thread {
peer.setChainTipSummaries(blockSummariesV2Message.getBlockSummaries()); peer.setChainTipSummaries(blockSummariesV2Message.getBlockSummaries());
// Potentially synchronize // Potentially synchronize
Synchronizer.getInstance().requestSync(); RNSSynchronizer.getInstance().requestSync();
} }
// ************ // ************

View File

@ -614,9 +614,9 @@ public class Settings {
} }
} }
// Related to Reticulum networking // Related to mesh networking
/** Preferred network: tcpip or reticulum */ /** Preferred network: "tcpip" or "reticulum" */
private String preferredNetwork = "reticulum"; private String preferredNetwork = "reticulum";
/** Maximum number of Reticulum peers allowed. */ /** Maximum number of Reticulum peers allowed. */
private int reticulumMaxPeers = 55; private int reticulumMaxPeers = 55;