disable rc expiration

This commit is contained in:
Jeff Becker 2019-02-11 12:26:52 -05:00
parent 46222df421
commit 62c200c6fa
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -230,19 +230,28 @@ namespace llarp
bool
RouterContact::IsExpired(llarp_time_t now) const
{
/*
auto expiresAt = last_updated + Lifetime;
return now >= expiresAt;
*/
(void)now;
return false;
}
bool
RouterContact::ExpiresSoon(llarp_time_t now, llarp_time_t dlt) const
{
(void)now;
(void)dlt;
return false;
/*
if(IsExpired(now))
{
return true;
}
auto expiresAt = last_updated + Lifetime;
return expiresAt - now <= dlt;
*/
}
std::string