transitionExtJarFile, node.clientCore,
legacyFetcherCallback);
updaterConfig.register("updateSeednodes", wasEnabledOnStartup, 6, true,
true, "NodeUpdateManager.updateSeednodes",
"NodeUpdateManager.updateSeednodesLong", new BooleanCallback() {
@Override
public Boolean get() {
return updateSeednodes;
}
@Override
public void set(Boolean val)
throws InvalidConfigValueException,
NodeNeedRestartException {
if (updateSeednodes == val)
return;
updateSeednodes = val;
if (val)
throw new NodeNeedRestartException(
"Must restart to fetch the seednodes");
else
throw new NodeNeedRestartException(
"Must restart to stop the seednodes fetch if it is still running");
}
});
updateSeednodes = updaterConfig.getBoolean("updateSeednodes");
updaterConfig.register("updateInstallers", wasEnabledOnStartup, 6,
true, true, "NodeUpdateManager.updateInstallers",
"NodeUpdateManager.updateInstallersLong",
new BooleanCallback() {
@Override
public Boolean get() {
return updateInstallers;
}