|
|
|
@ -104,7 +104,7 @@ namespace llarp
|
|
|
|
|
std::set<Introduction, CompareIntroTimestamp> intros;
|
|
|
|
|
if (const auto maybe =
|
|
|
|
|
GetCurrentIntroductionsWithFilter([now](const service::Introduction& intro) -> bool {
|
|
|
|
|
return not intro.ExpiresSoon(now, path::default_lifetime - path::intro_path_spread);
|
|
|
|
|
return not intro.ExpiresSoon(now, path::intro_stale_threshold);
|
|
|
|
|
}))
|
|
|
|
|
{
|
|
|
|
|
intros.insert(maybe->begin(), maybe->end());
|
|
|
|
@ -735,8 +735,7 @@ namespace llarp
|
|
|
|
|
|
|
|
|
|
const auto lastEventAt = std::max(m_state->m_LastPublishAttempt, m_state->m_LastPublish);
|
|
|
|
|
const auto next_pub = lastEventAt
|
|
|
|
|
+ (m_state->m_IntroSet.HasStaleIntros(
|
|
|
|
|
now, path::default_lifetime - path::intro_path_spread)
|
|
|
|
|
+ (m_state->m_IntroSet.HasStaleIntros(now, path::intro_stale_threshold)
|
|
|
|
|
? IntrosetPublishRetryCooldown
|
|
|
|
|
: IntrosetPublishInterval);
|
|
|
|
|
|
|
|
|
|