Start stale router lookup 5 minutes before its expiration

pull/1058/head
Stephen Shelton 4 years ago
parent 9b00e6fa8d
commit f01392cc49
No known key found for this signature in database
GPG Key ID: EE4BADACCE8B631C

@ -32,10 +32,11 @@ namespace llarp
/// 1 day for real network
llarp_time_t RouterContact::Lifetime = 24 * 60 * 60 * 1000;
#endif
/// update RCs every hour
llarp_time_t RouterContact::UpdateInterval = 60 * 60 * 1000;
/// an RC inserted long enough ago (4 hrs) is considered stale and is removed
llarp_time_t RouterContact::StaleInsertionAge = 4 * 60 * 60 * 1000;
/// update RCs shortly before they are about to expire
llarp_time_t RouterContact::UpdateInterval =
RouterContact::StaleInsertionAge - (5 * 60 * 1000);
NetID::NetID(const byte_t *val)
{

Loading…
Cancel
Save