From 661f1fb8b2427e6fef20b34a48aecb200aa44b1a Mon Sep 17 00:00:00 2001 From: stoffu Date: Tue, 9 Apr 2019 17:46:54 +0900 Subject: blockchain: remove unused calc of short_term_constraint --- src/cryptonote_core/blockchain.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/cryptonote_core') diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 73c60760b..dd3a5f0b9 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -3916,7 +3916,6 @@ bool Blockchain::update_next_cumulative_weight_limit(uint64_t *long_term_effecti new_weights[0] = long_term_block_weight; long_term_median = epee::misc_utils::median(new_weights); m_long_term_effective_median_block_weight = std::max(CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V5, long_term_median); - short_term_constraint = m_long_term_effective_median_block_weight + m_long_term_effective_median_block_weight * 2 / 5; weights.clear(); get_last_n_blocks_weights(weights, CRYPTONOTE_REWARD_BLOCKS_WINDOW); -- cgit v1.2.3