forked from lthn/blockchain
minor log improvement (take fee burning into account)
This commit is contained in:
parent
c14b5b6b21
commit
0455e81b4c
1 changed files with 6 additions and 3 deletions
|
|
@ -6714,7 +6714,7 @@ bool blockchain_storage::handle_block_to_main_chain(const block& bl, const crypt
|
|||
TIME_MEASURE_FINISH_PD_MS(block_processing_time_0_ms);
|
||||
|
||||
//print result
|
||||
stringstream powpos_str_entry, timestamp_str_entry, pos_validation_str_entry;
|
||||
stringstream powpos_str_entry, timestamp_str_entry, pos_validation_str_entry, block_reward_entry;
|
||||
if (is_pos_bl)
|
||||
{ // PoS
|
||||
int64_t actual_ts = get_block_datetime(bei.bl); // signed int is intentionally used here
|
||||
|
|
@ -6736,6 +6736,10 @@ bool blockchain_storage::handle_block_to_main_chain(const block& bl, const crypt
|
|||
powpos_str_entry << "PoW:\t" << proof_hash;
|
||||
timestamp_str_entry << ", block ts: " << bei.bl.timestamp << " (diff: " << std::showpos << ts_diff << "s)";
|
||||
}
|
||||
if(bei.bl.miner_tx.version >= TRANSACTION_VERSION_POST_HF4)
|
||||
block_reward_entry << "block reward: " << print_money_brief(base_reward) << ", fee burnt: " << print_money_brief(fee_summary);
|
||||
else
|
||||
block_reward_entry << "block reward: " << print_money_brief(base_reward + fee_summary) << " (" << print_money_brief(base_reward) << " + " << print_money_brief(fee_summary) << ")";
|
||||
//explanation of this code will be provided later with public announce
|
||||
set_lost_tx_unmixable_for_height(bei.height);
|
||||
|
||||
|
|
@ -6744,8 +6748,7 @@ bool blockchain_storage::handle_block_to_main_chain(const block& bl, const crypt
|
|||
<< ENDL << "id:\t" << id << timestamp_str_entry.str()
|
||||
<< ENDL << powpos_str_entry.str()
|
||||
<< ENDL << "HEIGHT " << bei.height << ", difficulty: " << current_diffic << ", cumul_diff_precise: " << bei.cumulative_diff_precise << ", cumul_diff_precise_adj: " << bei.cumulative_diff_precise_adjusted << " (+" << cumulative_diff_delta << ")"
|
||||
<< ENDL << "block reward: " << print_money_brief(base_reward + fee_summary) << " (" << print_money_brief(base_reward) << " + " << print_money_brief(fee_summary)
|
||||
<< ")" << ", coinbase_blob_size: " << coinbase_blob_size << ", cumulative size: " << cumulative_block_size << ", tx_count: " << bei.bl.tx_hashes.size()
|
||||
<< ENDL << block_reward_entry.str() << ", coinbase_blob_size: " << coinbase_blob_size << ", cumulative size: " << cumulative_block_size << ", tx_count: " << bei.bl.tx_hashes.size()
|
||||
<< ", timing: " << block_processing_time_0_ms << "ms"
|
||||
<< "(micrsec:" << block_processing_time_1
|
||||
<< "(" << target_calculating_time_2 << "(" << m_performance_data.target_calculating_enum_blocks.get_last_val() << "/" << m_performance_data.target_calculating_calc.get_last_val() << ")"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue