From 09b1b120d7665ca3cfa38dbf09a1ff1dfe617a6c Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 7 Mar 2019 14:51:05 -0500 Subject: [PATCH] update LeaseSet2 if store type changed --- libi2pd/NetDb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/NetDb.cpp b/libi2pd/NetDb.cpp index e3d3a509..2780bc8f 100644 --- a/libi2pd/NetDb.cpp +++ b/libi2pd/NetDb.cpp @@ -304,7 +304,7 @@ namespace data if (leaseSet->IsValid ()) { auto it = m_LeaseSets.find(ident); - if (it == m_LeaseSets.end () || it->second->GetStoreType () == i2p::data::NETDB_STORE_TYPE_LEASESET || + if (it == m_LeaseSets.end () || it->second->GetStoreType () != storeType || leaseSet->GetPublishedTimestamp () > it->second->GetPublishedTimestamp ()) { // TODO: implement actual update