Function grin_core::consensus::next_wtema_difficulty
source · pub fn next_wtema_difficulty<T>(_height: u64, cursor: T) -> HeaderDifficultyInfowhere
T: IntoIterator<Item = HeaderDifficultyInfo>,
Expand description
Difficulty calculation based on a Weighted Target Exponential Moving Average of difficulty, using the ratio of the last block time over the target block time.