From 9a60c08810628354ae8a02c20a4e03aa775832ae Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 6 Oct 2018 12:03:54 -0400 Subject: [PATCH] only publish when we have at least 3 established paths --- llarp/service/endpoint.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llarp/service/endpoint.cpp b/llarp/service/endpoint.cpp index 36ba05336..7d37e6113 100644 --- a/llarp/service/endpoint.cpp +++ b/llarp/service/endpoint.cpp @@ -572,6 +572,8 @@ namespace llarp bool Endpoint::ShouldPublishDescriptors(llarp_time_t now) const { + if(NumInStatus(llarp::path::eEstablished) < 3) + return false; if(m_IntroSet.HasExpiredIntros(now)) return now - m_LastPublishAttempt >= INTROSET_PUBLISH_RETRY_INTERVAL; return now - m_LastPublishAttempt >= INTROSET_PUBLISH_INTERVAL;