diff options
| author | xiphon <xiphon@protonmail.com> | 2019-09-09 01:10:43 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2019-09-09 01:14:06 +0000 |
| commit | bc22de47f9ce1dbd5b4bde027b81fc906cc28f26 (patch) | |
| tree | 8cf53f0a01a0201e6e62c168f1c1c6154e5330b5 | |
| parent | 346e942e93e556a44b854061d37e64324a6d5a38 (diff) | |
| download | monzero-gui-bc22de47f9ce1dbd5b4bde027b81fc906cc28f26.tar.gz monzero-gui-bc22de47f9ce1dbd5b4bde027b81fc906cc28f26.tar.xz monzero-gui-bc22de47f9ce1dbd5b4bde027b81fc906cc28f26.zip | |
DaemonManager: use 'sync_info' to avoid bootstrap daemon requests
| -rw-r--r-- | src/daemon/DaemonManager.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/daemon/DaemonManager.cpp b/src/daemon/DaemonManager.cpp index 4277e0bb..d4f280e7 100644 --- a/src/daemon/DaemonManager.cpp +++ b/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 |
