NetDB: Fix reseeding when clock is skewed

reported, fixed, and tested by zlatinb
This commit is contained in:
zzz
2022-09-06 11:56:33 -04:00
parent 45c160f27a
commit a2eee5a673
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2022-09-06 zzz
* NetDB: Fix reseeding when clock is skewed
* SSU2: Don't publish or connect if our MTU becomes too small
2022-09-04 zzz
* SusiDNS: Fix adding to empty address book

View File

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

View File

@ -366,7 +366,7 @@ public class PersistentDataStore extends TransientDataStore {
requeue(READ_DELAY);
return;
}
long now = getContext().clock().now();
long now = System.currentTimeMillis();
// check directory mod time to save a lot of object churn in scanning all the file names
long lastMod = _dbDir.lastModified();
// if size() (= RI + LS) is too low, call anyway to check for reseed