fn is_unconfirmed_duplicate(&self, my_slot: Slot) -> bool {
        self.latest_invalid_ancestor
            .map(|ancestor| ancestor == my_slot)
            .unwrap_or(false)
    }
/// Returns if this node has been explicitly marked as a duplicate
/// slot
Returns if this node has been explicitly marked as a duplicate
slot
Returns if this node has been explicitly marked as a duplicate slot
fn is_unconfirmed_duplicate(&self, my_slot: Slot) -> bool {
        self.latest_invalid_ancestor
            .map(|ancestor| ancestor == my_slot)
            .unwrap_or(false)
    }
fn is_unconfirmed_duplicate ( & self , my_slot : Slot ) -> bool { self . latest_invalid_ancestor . map ( | ancestor | ancestor == my_slot ) . unwrap_or ( false ) }
Returns if this node has been explicitly marked as a duplicate
slot
Returns if this node has been explicitly marked as a duplicate slot
&self
my_slot
Slot