pub fn ancestors(&self) -> HashMap<u64, HashSet<u64>> {
        let mut ancestors = HashMap::new();
        for bank in self.banks.values() {
            let mut set: HashSet<u64> = bank.ancestors.keys().cloned().collect();
            set.remove(&bank.slot());
            ancestors.insert(bank.slot(), set);
        }
        ancestors
    }
/// Create a map of bank slot id to the set of ancestors for the bank slot.
Create a map of bank slot id to the set of ancestors for the bank slot.
Create a map of bank slot id to the set of ancestors for the bank slot .
pub fn ancestors(&self) -> HashMap<u64, HashSet<u64>> {
        let mut ancestors = HashMap::new();
        for bank in self.banks.values() {
            let mut set: HashSet<u64> = bank.ancestors.keys().cloned().collect();
            set.remove(&bank.slot());
            ancestors.insert(bank.slot(), set);
        }
        ancestors
    }
pub fn ancestors ( & self ) -> HashMap < u64 , HashSet < u64 > > { let mut ancestors = HashMap :: new ( ) ; for bank in self . banks . values ( ) { let mut set : HashSet < u64 > = bank . ancestors . keys ( ) . cloned ( ) . collect ( ) ; set . remove ( & bank . slot ( ) ) ; ancestors . insert ( bank . slot ( ) , set ) ; } ancestors }
Create a map of bank slot id to the set of ancestors for the bank slot.
Create a map of bank slot id to the set of ancestors for the bank slot .
&self
&self