[][src]Function hycon_rust::consensus::difficulty_adjuster::adjust_difficulty

pub fn adjust_difficulty<HeaderType, TxType>(
    previous_block: Block<HeaderType, TxType>,
    time_stamp: f64
) -> Result<(f64, f64, f64), Box<dyn Error>> where
    HeaderType: BlockHeader + Proto + Clone + Encode

Calculates the next target difficulty for a block