Function grin_core::consensus::next_difficulty

source ·
pub fn next_difficulty<T>(height: u64, cursor: T) -> HeaderDifficultyInfo
Expand description

Computes the proof-of-work difficulty that the next block should comply with. Takes an iterator over past block headers information, from latest (highest height) to oldest (lowest height). Uses either the old dma DAA or, starting from HF4, the new wtema DAA