NetDB: Don't note 'enabled floodfill' in event log every startup when forced on

This commit is contained in:
zzz
2021-03-24 09:32:01 -04:00
parent 0eb4096aad
commit 5f39426073

View File

@@ -57,7 +57,10 @@ class FloodfillMonitorJob extends JobImpl {
_facade.setFloodfillEnabledFromMonitor(ff);
if (ff != wasFF) {
if (ff) {
getContext().router().eventLog().addEvent(EventLog.BECAME_FLOODFILL);
if (!(getContext().getBooleanProperty(PROP_FLOODFILL_PARTICIPANT) &&
getContext().router().getUptime() < 3*60*1000)) {
getContext().router().eventLog().addEvent(EventLog.BECAME_FLOODFILL);
}
} else {
getContext().router().eventLog().addEvent(EventLog.NOT_FLOODFILL);
}