|
|
@ -52,14 +52,13 @@ RPC::RPC(MainWindow* main) { |
|
|
|
}); |
|
|
|
timer->start(Settings::updateSpeed); |
|
|
|
|
|
|
|
|
|
|
|
// Set up the timer to watch for tx status
|
|
|
|
txTimer = new QTimer(main); |
|
|
|
QObject::connect(txTimer, &QTimer::timeout, [=]() { |
|
|
|
//qDebug() << "Watching tx status";
|
|
|
|
watchTxStatus(); |
|
|
|
}); |
|
|
|
|
|
|
|
txTimer->start(Settings::updateSpeed); |
|
|
|
qDebug() << __func__ << "Done settings up all timers"; |
|
|
|
|
|
|
|
usedAddresses = new QMap<QString, bool>(); |
|
|
@ -1180,8 +1179,10 @@ void RPC::watchTxStatus() { |
|
|
|
} |
|
|
|
|
|
|
|
if (watchingOps.isEmpty()) { |
|
|
|
txTimer->start(Settings::updateSpeed); |
|
|
|
// Stop the timer
|
|
|
|
txTimer->stop(); |
|
|
|
} else { |
|
|
|
// Keep polling for updates
|
|
|
|
txTimer->start(Settings::quickUpdateSpeed); |
|
|
|
} |
|
|
|
} |
|
|
|