1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

testnet: don't give oxend and error when testing is disabled

This commit is contained in:
Jason Rhinelander 2023-12-07 20:52:21 -04:00
parent 8af38d3d44
commit bc2cb46d9c
No known key found for this signature in database
GPG key ID: C4992CE7A88D4262

View file

@ -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;
}