fn mark_fork_valid(&mut self, fork_to_modify_key: SlotHashKey, valid_slot: Slot) {
        if let Some(fork_info_to_modify) = self.fork_infos.get_mut(&fork_to_modify_key) {
            fork_info_to_modify.update_with_newly_valid_ancestor(&fork_to_modify_key, valid_slot);
            if fork_to_modify_key.0 == valid_slot {
                fork_info_to_modify.is_duplicate_confirmed = true;
            }
        }
    }
/// Mark that `valid_slot` on the fork starting at `fork_to_modify` has been marked
/// valid. Note we don't need the hash for `valid_slot` because slot number uniquely
/// identifies a node on a single fork.
Mark that `valid_slot` on the fork starting at `fork_to_modify` has been marked
valid. Note we don't need the hash for `valid_slot` because slot number uniquely
identifies a node on a single fork.
Mark that ` valid_slot ` on the fork starting at ` fork_to_modify ` has been marked valid . Note we don ' t need the hash for ` valid_slot ` because slot number uniquely identifies a node on a single fork .
fn mark_fork_valid(&mut self, fork_to_modify_key: SlotHashKey, valid_slot: Slot) {
        if let Some(fork_info_to_modify) = self.fork_infos.get_mut(&fork_to_modify_key) {
            fork_info_to_modify.update_with_newly_valid_ancestor(&fork_to_modify_key, valid_slot);
            if fork_to_modify_key.0 == valid_slot {
                fork_info_to_modify.is_duplicate_confirmed = true;
            }
        }
    }
fn mark_fork_valid ( & mut self , fork_to_modify_key : SlotHashKey , valid_slot : Slot ) { if let Some ( fork_info_to_modify ) = self . fork_infos . get_mut ( & fork_to_modify_key ) { fork_info_to_modify . update_with_newly_valid_ancestor ( & fork_to_modify_key , valid_slot ) ; if fork_to_modify_key . 0 == valid_slot { fork_info_to_modify . is_duplicate_confirmed = true ; } } }
Mark that `valid_slot` on the fork starting at `fork_to_modify` has been marked
valid.
Mark that ` valid_slot ` on the fork starting at ` fork_to_modify ` has been marked valid .
&mut self
fork_to_modify_key
SlotHashKey
valid_slot
Slot