delete unconfirmed LeaseSet and DeliveryStatus

This commit is contained in:
orignal 2020-03-14 16:35:34 -04:00
parent 45145fa50a
commit b5bc05ac2b
4 changed files with 21 additions and 9 deletions

View file

@ -85,7 +85,7 @@ namespace garlic
if (!m_Destination) m_Destination.reset (new i2p::data::IdentHash (dest));
}
bool IsExpired (uint64_t ts) const { return ts > m_LastActivityTimestamp + ECIESX25519_EXPIRATION_TIMEOUT; }
bool CheckExpired (uint64_t ts); // true is expired
bool CanBeRestarted (uint64_t ts) const { return ts > m_LastActivityTimestamp + ECIESX25519_RESTART_TIMEOUT; }
private: