From 409cd94d56ce59c9fee4fba53ac0d5a73849beee Mon Sep 17 00:00:00 2001 From: sowle Date: Wed, 1 Apr 2020 12:17:45 +0300 Subject: [PATCH] simplewallet: fixed a typo --- src/simplewallet/simplewallet.cpp | 7 ++++--- src/simplewallet/simplewallet.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 689e9095..a0025fb6 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -200,7 +200,7 @@ simple_wallet::simple_wallet() m_cmd_binder.set_handler("wallet_bc_height", boost::bind(&simple_wallet::show_wallet_bcheight, this, _1), "Show blockchain height"); m_cmd_binder.set_handler("transfer", boost::bind(&simple_wallet::transfer, this, _1), "transfer [ ... ] [payment_id] - Transfer ,... to ,... , respectively. is the number of transactions yours is indistinguishable from (from 0 to maximum available)"); m_cmd_binder.set_handler("set_log", boost::bind(&simple_wallet::set_log, this, _1), "set_log - Change current log detalisation level, is a number 0-4"); - m_cmd_binder.set_handler("enable_concole_logger", boost::bind(&simple_wallet::enable_concole_logger, this, _1), "Enables console logging"); + m_cmd_binder.set_handler("enable_console_logger", boost::bind(&simple_wallet::enable_console_logger, this, _1), "Enables console logging"); m_cmd_binder.set_handler("resync", boost::bind(&simple_wallet::resync_wallet, this, _1), "Causes wallet to reset all transfers and re-synchronize wallet"); m_cmd_binder.set_handler("help", boost::bind(&simple_wallet::help, this, _1), "Show this help"); m_cmd_binder.set_handler("get_transfer_info", boost::bind(&simple_wallet::get_transfer_info, this, _1), "displays transfer info by key_image or index"); @@ -226,16 +226,17 @@ simple_wallet::simple_wallet() m_cmd_binder.set_handler("submit_transfer", boost::bind(&simple_wallet::submit_transfer, this, _1), "submit_transfer - broadcast signed tx"); } //---------------------------------------------------------------------------------------------------- - simple_wallet::~simple_wallet() { } -bool simple_wallet::enable_concole_logger(const std::vector &args) +//---------------------------------------------------------------------------------------------------- +bool simple_wallet::enable_console_logger(const std::vector &args) { log_space::log_singletone::add_logger(LOGGER_CONSOLE, NULL, NULL, LOG_LEVEL_0); LOG_PRINT_L0("Console logger enabled"); return true; } +//---------------------------------------------------------------------------------------------------- bool simple_wallet::set_log(const std::vector &args) { if(args.size() != 1) diff --git a/src/simplewallet/simplewallet.h b/src/simplewallet/simplewallet.h index 63128575..8c57697b 100644 --- a/src/simplewallet/simplewallet.h +++ b/src/simplewallet/simplewallet.h @@ -78,7 +78,7 @@ namespace currency bool viewkey(const std::vector &args); bool save(const std::vector &args); bool set_log(const std::vector &args); - bool enable_concole_logger(const std::vector &args); + bool enable_console_logger(const std::vector &args); bool integrated_address(const std::vector &args); bool get_tx_key(const std::vector &args_); bool save_watch_only(const std::vector &args);