}
void CoinsWidget::onSweepOutputs() {
+ if (!m_wallet->isConnected()) {
+ Utils::showError(this, "Unable to create transaction", "Wallet is not connected to a node.",
+ {"Wait for the wallet to automatically connect to a node.", "Go to File -> Settings -> Network -> Node to manually connect to a node."},
+ "nodes");
+ return;
+ }
+
+ if (!m_wallet->isSynchronized()) {
+ Utils::showError(this, "Unable to create transaction", "Wallet is not synchronized", {"Wait for wallet synchronization to complete"}, "synchronization");
+ return;
+ }
+
QVector<CoinsInfo*> selectedCoins = this->currentEntries();
QVector<QString> keyImages;
this->syncStatusUpdated(walletHeight, daemonHeight);
}
- if (walletHeight < (daemonHeight - 1)) {
+ if (walletHeight < (targetHeight - 1)) {
setConnectionStatus(ConnectionStatus_Synchronizing);
} else {
setConnectionStatus(ConnectionStatus_Synchronized);