forked from lthn/blockchain
simplewallet speed opt + more logs
This commit is contained in:
parent
cb751f61c3
commit
f4ff304bde
2 changed files with 3 additions and 2 deletions
|
|
@ -122,7 +122,7 @@ namespace currency
|
|||
m_blockchain_height = (std::max)(m_blockchain_height, height);
|
||||
}
|
||||
|
||||
if (std::chrono::milliseconds(1) < current_time - m_print_time || force)
|
||||
if (std::chrono::milliseconds(100) < current_time - m_print_time || force)
|
||||
{
|
||||
std::cout << "Height " << height << " of " << m_blockchain_height << '\r';
|
||||
m_print_time = current_time;
|
||||
|
|
|
|||
|
|
@ -1195,7 +1195,7 @@ void wallet2::handle_money_received2(const currency::block& b, const currency::t
|
|||
wallet_public::wallet_transfer_info& wti = m_transfer_history.back();
|
||||
wti.is_income = true;
|
||||
prepare_wti(wti, get_block_height(b), get_actual_timestamp(b), tx, amount, td);
|
||||
|
||||
WLT_LOG_L1("[MONEY RECEIVED]: " << epee::serialization::store_t_to_json(wti));
|
||||
rise_on_transfer2(wti);
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
|
|
@ -1225,6 +1225,7 @@ void wallet2::handle_money_spent2(const currency::block& b,
|
|||
wti.remote_addresses = recipients;
|
||||
wti.recipients_aliases = recipients_aliases;
|
||||
prepare_wti(wti, get_block_height(b), get_actual_timestamp(b), in_tx, amount, td);
|
||||
WLT_LOG_L1("[MONEY SPENT]: " << epee::serialization::store_t_to_json(wti));
|
||||
rise_on_transfer2(wti);
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue