pub fn to_hashmap(&self) -> HashMap<EthAddress, u64> {
        let mut res = HashMap::new();
        for item in self.members.iter() {
            if let Some(address) = item.eth_address {
                res.insert(address, item.power);
            } else {
                panic!("Validator in active set without Eth Address! This must be corrected immediately!")
            }
        }
        res
    }
/// A utility function to provide a HashMap of members for easy lookups
A utility function to provide a HashMap of members for easy lookups
A utility function to provide a HashMap of members for easy lookups
pub fn to_hashmap(&self) -> HashMap<EthAddress, u64> {
        let mut res = HashMap::new();
        for item in self.members.iter() {
            if let Some(address) = item.eth_address {
                res.insert(address, item.power);
            } else {
                panic!("Validator in active set without Eth Address! This must be corrected immediately!")
            }
        }
        res
    }
pub fn to_hashmap ( & self ) -> HashMap < EthAddress , u64 > { let mut res = HashMap :: new ( ) ; for item in self . members . iter ( ) { if let Some ( address ) = item . eth_address { res . insert ( address , item . power ) ; } else { panic ! ( " " ) } } res }
A utility function to provide a HashMap of members for easy lookups
A utility function to provide a HashMap of members for easy lookups
&self
&self