match timeouts in introset selection spread with logic for publishing

pull/1801/head
Jeff Becker 3 years ago
parent e4514aec3d
commit 8ba03de44e
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -104,8 +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::min_intro_lifetime);
return not intro.ExpiresSoon(now, path::default_lifetime - path::intro_path_spread);
}))
{
intros.insert(maybe->begin(), maybe->end());

Loading…
Cancel
Save