From 1968cbbb933fd78efd4c0bae65e6a4fc37d0bf56 Mon Sep 17 00:00:00 2001 From: wowario Date: Sat, 25 Feb 2023 09:47:50 +0300 Subject: [PATCH] remove warning about background mining --- src/simplewallet/simplewallet.cpp | 3 --- src/wallet/wallet_rpc_server.cpp | 1 - 2 files changed, 4 deletions(-) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 79089973a..6963d290a 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -5378,7 +5378,6 @@ void simple_wallet::stop_background_mining() return; } } - message_writer(console_color_red, false) << tr("Background mining not enabled. Run \"set setup-background-mining 1\" to change."); } //---------------------------------------------------------------------------------------------------- void simple_wallet::check_background_mining(const epee::wipeable_string &password) @@ -5386,7 +5385,6 @@ void simple_wallet::check_background_mining(const epee::wipeable_string &passwor tools::wallet2::BackgroundMiningSetupType setup = m_wallet->setup_background_mining(); if (setup == tools::wallet2::BackgroundMiningNo) { - message_writer(console_color_red, false) << tr("Background mining not enabled. Run \"set setup-background-mining 1\" to change."); return; } @@ -5427,7 +5425,6 @@ void simple_wallet::check_background_mining(const epee::wipeable_string &passwor if (std::cin.eof() || !command_line::is_yes(accepted)) { m_wallet->setup_background_mining(tools::wallet2::BackgroundMiningNo); m_wallet->rewrite(m_wallet_file, password); - message_writer(console_color_red, false) << tr("Background mining not enabled. Set setup-background-mining to 1 to change."); return; } m_wallet->setup_background_mining(tools::wallet2::BackgroundMiningYes); diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 7162edf83..8b984646e 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -288,7 +288,6 @@ namespace tools tools::wallet2::BackgroundMiningSetupType setup = m_wallet->setup_background_mining(); if (setup == tools::wallet2::BackgroundMiningNo) { - MLOG_RED(el::Level::Warning, "Background mining not enabled. Run \"set setup-background-mining 1\" in wownero-wallet-cli to change."); return; }