Skip to content
Permalink
Browse files

DaemonManager: use 'sync_info' to avoid bootstrap daemon requests

  • Loading branch information...
xiphon committed Sep 9, 2019
1 parent 346e942 commit bc22de47f9ce1dbd5b4bde027b81fc906cc28f26
Showing with 2 additions and 7 deletions.
  1. +2 −7 src/daemon/DaemonManager.cpp
@@ -234,14 +234,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:");
}

void DaemonManager::runningAsync(NetworkType::Type nettype, const QJSValue& callback) const

0 comments on commit bc22de4

Please sign in to comment.
You can’t perform that action at this time.