Use node instead of daemon in user-facing strings

This commit is contained in:
tobtoht 2021-08-14 16:57:39 +02:00
parent 1e6832c184
commit b76636daa6

View file

@ -600,11 +600,11 @@ void MainWindow::onCreateTransactionSuccess(PendingTransaction *tx, const QVecto
qCritical() << tx_err; qCritical() << tx_err;
if (m_ctx->wallet->connectionStatus() == Wallet::ConnectionStatus_WrongVersion) if (m_ctx->wallet->connectionStatus() == Wallet::ConnectionStatus_WrongVersion)
err = QString("%1 Wrong daemon version: %2").arg(err).arg(tx_err); err = QString("%1 Wrong node version: %2").arg(err).arg(tx_err);
else else
err = QString("%1 %2").arg(err).arg(tx_err); err = QString("%1 %2").arg(err).arg(tx_err);
if (tx_err.contains("Daemon response did not include the requested real output")) { if (tx_err.contains("Node response did not include the requested real output")) {
QString currentNode = m_ctx->nodes->connection().toAddress(); QString currentNode = m_ctx->nodes->connection().toAddress();
err += QString("\nYou are currently connected to: %1\n\n" err += QString("\nYou are currently connected to: %1\n\n"
@ -726,7 +726,7 @@ void MainWindow::showConnectionStatusDialog() {
QString statusMsg; QString statusMsg;
switch(status){ switch(status){
case Wallet::ConnectionStatus_Disconnected: case Wallet::ConnectionStatus_Disconnected:
statusMsg = "Wallet is disconnected from daemon."; statusMsg = "Wallet is disconnected from node.";
break; break;
case Wallet::ConnectionStatus_Connecting: { case Wallet::ConnectionStatus_Connecting: {
auto node = m_ctx->nodes->connection(); auto node = m_ctx->nodes->connection();
@ -734,7 +734,7 @@ void MainWindow::showConnectionStatusDialog() {
break; break;
} }
case Wallet::ConnectionStatus_WrongVersion: case Wallet::ConnectionStatus_WrongVersion:
statusMsg = "Wallet is connected to incompatible daemon."; statusMsg = "Wallet is connected to incompatible node.";
break; break;
case Wallet::ConnectionStatus_Synchronizing: case Wallet::ConnectionStatus_Synchronizing:
case Wallet::ConnectionStatus_Synchronized: { case Wallet::ConnectionStatus_Synchronized: {