pub fn calculate_dag_item(node_index: u32, cache: &[Node]) -> Node