Merge pull request #2385

bc22de4 DaemonManager: use 'sync_info' to avoid bootstrap daemon requests (xiphon)
This commit is contained in:
luigi1111 2019-09-14 12:46:18 -05:00
commit ca8138bb46
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -240,14 +240,9 @@ void DaemonManager::printError()
bool DaemonManager::running(NetworkType::Type nettype) const
{
QString status;
sendCommand("status", nettype, status);
sendCommand("sync_info", nettype, status);
qDebug() << status;
// `./monerod status` returns BUSY when syncing.
// Treat busy as connected, until fixed upstream.
if (status.contains("Height:") || status.contains("BUSY") ) {
return true;
}
return false;
return status.contains("Height:");
}
bool DaemonManager::noSync() const noexcept