diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-01-27 17:25:40 -0800 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-01-27 17:25:40 -0800 |
commit | f7dcb730cb0bea5a3478b500845a6dcd3eccc559 (patch) | |
tree | 20054422d37316d6e402bd11a3c0ca676191a36d /src/cryptonote_core/blockchain.h | |
parent | Merge pull request #3143 (diff) | |
parent | rpc: expose recent median block size in getinfo (diff) | |
download | monero-f7dcb730cb0bea5a3478b500845a6dcd3eccc559.tar.xz |
Merge pull request #3144
42f86624 rpc: expose recent median block size in getinfo (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r-- | src/cryptonote_core/blockchain.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h index 9c47ab425..b2bbff488 100644 --- a/src/cryptonote_core/blockchain.h +++ b/src/cryptonote_core/blockchain.h @@ -637,6 +637,13 @@ namespace cryptonote uint64_t get_current_cumulative_blocksize_limit() const; /** + * @brief gets the blocksize median based on recent blocks (same window as for the limit) + * + * @return the median + */ + uint64_t get_current_cumulative_blocksize_median() const; + + /** * @brief gets the difficulty of the block with a given height * * @param i the height @@ -962,6 +969,7 @@ namespace cryptonote // main chain transactions_container m_transactions; size_t m_current_block_cumul_sz_limit; + size_t m_current_block_cumul_sz_median; // metadata containers std::unordered_map<crypto::hash, std::unordered_map<crypto::key_image, std::vector<output_data_t>>> m_scan_table; |