NetDB: Use new isNewer() method for LS comparison in another spot

This commit is contained in:
zzz
2024-11-04 13:07:08 -05:00
parent 0e2a88ac16
commit 29d131827a

View File

@ -102,7 +102,7 @@ class RepublishLeaseSetJob extends JobImpl {
public void runJob() {
// Don't requeue if there's a newer LS, KNDF will have already done that
LeaseSet ls = _facade.lookupLeaseSetLocally(_ls.getHash());
if (ls != null && ls.getEarliestLeaseDate() == _ls.getEarliestLeaseDate()) {
if (ls != null && !KademliaNetworkDatabaseFacade.isNewer(ls, _ls)) {
requeueRepublish();
} else {
if (_log.shouldWarn())