mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2025-07-08 02:45:08 +00:00
blockchain: keep a rolling long term block weight median
This commit is contained in:
parent
581994b61c
commit
a4c4a2d8aa
6 changed files with 476 additions and 34 deletions
|
@ -722,7 +722,7 @@ bool t_rpc_command_executor::print_blockchain_info(uint64_t start_block_index, u
|
|||
tools::msg_writer() << "" << std::endl;
|
||||
tools::msg_writer()
|
||||
<< "height: " << header.height << ", timestamp: " << header.timestamp << " (" << tools::get_human_readable_timestamp(header.timestamp) << ")"
|
||||
<< ", size: " << header.block_size << ", weight: " << header.block_weight << ", transactions: " << header.num_txes << std::endl
|
||||
<< ", size: " << header.block_size << ", weight: " << header.block_weight << " (long term " << header.long_term_weight << "), transactions: " << header.num_txes << std::endl
|
||||
<< "major version: " << (unsigned)header.major_version << ", minor version: " << (unsigned)header.minor_version << std::endl
|
||||
<< "block id: " << header.hash << ", previous block id: " << header.prev_hash << std::endl
|
||||
<< "difficulty: " << header.difficulty << ", nonce " << header.nonce << ", reward " << cryptonote::print_money(header.reward) << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue