Function darkfi::validator::utils::find_extended_fork_index

source ·
pub fn find_extended_fork_index(
    forks: &[Fork],
    proposal: &Proposal,
) -> Result<(usize, usize)>
Expand description

Given a proposal, find the index of a fork chain it extends, along with the specific extended proposal index. Additionally, check that proposal doesn’t already exists in any fork chain.