aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2019-04-09 17:46:54 +0900
committerstoffu <stoffu@protonmail.ch>2019-04-09 19:39:24 +0900
commit661f1fb8b2427e6fef20b34a48aecb200aa44b1a (patch)
tree977bfb3840a7a6131882c7fa21ecedf9cb070df7 /src/cryptonote_core
parentMerge pull request #5364 (diff)
downloadmonero-661f1fb8b2427e6fef20b34a48aecb200aa44b1a.tar.xz
blockchain: remove unused calc of short_term_constraint
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/blockchain.cpp1
1 files changed, 0 insertions, 1 deletions
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<uint64_t>(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);