NetDB: Ensure blind data is rewritten after updating expiration

This commit is contained in:
zzz
2021-02-09 09:24:34 -05:00
parent 92d91dfc3a
commit c8471d5d9b
3 changed files with 16 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 16;
public final static long BUILD = 17;
/** for example "-test" */
public final static String EXTRA = "-rc";

View File

@@ -886,6 +886,8 @@ class ClientMessageEventListener implements I2CPMessageReader.I2CPMessageEventLi
long nexp = bd.getExpiration();
if (nexp > oexp) {
obd.setExpiration(nexp);
// to force save at shutdown
_context.netDb().setBlindData(obd);
if (_log.shouldWarn())
_log.warn("Updated expiration: " + obd);
} else {