I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 8296f822 authored by zzz's avatar zzz
Browse files

+ * NetDB: Allow store of leaseset as long as one lease has not expired

parent 059ae3a8
No related branches found
No related tags found
No related merge requests found
......@@ -662,7 +662,7 @@ public class KademliaNetworkDatabaseFacade extends NetworkDatabaseFacade {
long earliest = leaseSet.getEarliestLeaseDate();
long latest = leaseSet.getLatestLeaseDate();
long now = _context.clock().now();
if (earliest <= now - 2*Router.CLOCK_FUDGE_FACTOR ||
if (earliest <= now - 10*60*1000L ||
// same as the isCurrent(Router.CLOCK_FUDGE_FACTOR) test in
// lookupLeaseSetLocally()
latest <= now - Router.CLOCK_FUDGE_FACTOR) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment