1
0
Fork 0
forked from lthn/blockchain

modified logging in wallet

This commit is contained in:
cryptozoidberg 2021-07-19 22:52:59 +02:00
parent 4584b5fede
commit 7886f7cd3d
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
2 changed files with 3 additions and 3 deletions

View file

@ -184,7 +184,7 @@ DISABLE_VS_WARNINGS(4100)
#define LOG_PRINT_MAGENTA(mess, level) LOG_PRINT_COLOR2(LOG_DEFAULT_TARGET, mess, level, epee::log_space::console_color_magenta)
#define LOG_PRINT_RED_L0(mess) LOG_PRINT_COLOR2(LOG_DEFAULT_TARGET, mess, LOG_LEVEL_0, epee::log_space::console_color_red)
#define LOG_PRINT_GREEN_L0(mess, level) LOG_PRINT_COLOR2(LOG_DEFAULT_TARGET, mess, LOG_LEVEL_0, epee::log_space::console_color_green)
#define LOG_PRINT_GREEN_L0(mess) LOG_PRINT_COLOR2(LOG_DEFAULT_TARGET, mess, LOG_LEVEL_0, epee::log_space::console_color_green)
#define LOG_PRINT_L0(mess) LOG_PRINT(mess, LOG_LEVEL_0)
#define LOG_PRINT_L1(mess) LOG_PRINT(mess, LOG_LEVEL_1)

View file

@ -754,7 +754,7 @@ bool print_wti(const tools::wallet_public::wallet_transfer_info& wti)
remote_side += remote_side.empty() ? it : (separator + it);
}
message_writer(cl) << epee::misc_utils::get_time_str_v2(wti.timestamp) << " "
success_msg_writer(cl) << "[" << wti.transfer_internal_index << "]" << epee::misc_utils::get_time_str_v2(wti.timestamp) << " "
<< (wti.is_income ? "Received " : "Sent ")
<< print_money(wti.amount) << "(fee:" << print_money(wti.fee) << ") "
<< remote_side
@ -768,7 +768,7 @@ bool simple_wallet::list_recent_transfers(const std::vector<std::string>& args)
std::vector<tools::wallet_public::wallet_transfer_info> recent;
uint64_t total = 0;
uint64_t last_index = 0;
m_wallet->get_recent_transfers_history(recent, 0, 0, total, last_index, false);
m_wallet->get_recent_transfers_history(recent, std::stoll(args[0]), std::stoll(args[1]), total, last_index, false);
m_wallet->get_unconfirmed_transfers(unconfirmed, false);
//workaround for missed fee