Module weight

Source
Expand description

§Block Weights

This module contains calculations for block weights, including calculating block weight limits, effective medians and long term block weights.

For more information please see the block weights chapter in the Monero Book.

Structs§

BlockWeightsCache
A cache used to calculate block weight limits, the effective median and long term block weights.
BlockWeightsCacheConfig
Configuration for the block weight cache.

Constants§

LONG_TERM_WINDOW
The long term block weight window.
SHORT_TERM_WINDOW
The short term block weight window.

Functions§

calculate_block_long_term_weight
Calculates a blocks long term weight.