mirror of
https://github.com/monero-project/monero.git
synced 2026-01-12 21:13:55 -08:00
Merge pull request #5414
e9fac29aunit_tests/long_term_block_weight: some tweaks that seem to make more sense (stoffu)467f4c7etests/block_weight: use integer division when computing median (stoffu)815d08dctests/block_weight: remove unused MULTIPLIER_SMALL (stoffu)661f1fb8blockchain: remove unused calc of short_term_constraint (stoffu)
This commit is contained in:
@@ -3986,7 +3986,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);
|
||||
|
||||
Reference in New Issue
Block a user