From 686c7e0207c68beba44b17057c3e502b5a3de994 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Thu, 7 Dec 2023 20:52:21 -0400 Subject: [PATCH] testnet: don't give oxend and error when testing is disabled --- llarp/router/router.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llarp/router/router.cpp b/llarp/router/router.cpp index e9c6e5d94..0bae8c652 100644 --- a/llarp/router/router.cpp +++ b/llarp/router/router.cpp @@ -446,7 +446,7 @@ namespace llarp { // If we're in the white or gray list then we *should* be establishing connections to other // routers, so if we have almost no peers then something is almost certainly wrong. - if (appears_funded() and insufficient_peers()) + if (appears_funded() and insufficient_peers() and not _testing_disabled) return "too few peer connections; lokinet is not adequately connected to the network"; return std::nullopt; }