diff --git a/src/settings.cpp b/src/settings.cpp index f68965a..f8cbaa1 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -342,8 +342,10 @@ QString Settings::getRandomServer() { qDebug() << __func__ << ": caught an exception, ignoring: " << e.what(); } - // if we see a valid connection, return this server - if (response.toUpper().trimmed() == "OK") { + // if we see a valid connection, return this server. when the server is alive, + //it tries to read the wallet. This causes an error because it cannot find it (SDL only has a non-encrypted wallet.dat during storage processes) + // We can use that. + if (response.contains("Error: Cannot read wallet.")) { qDebug() << "Choosing lite server " << server; return server; }