pub fn choose_leader(peers: Vec<Author>) -> Author {
    // As it is just a tmp hack function, pick the min PeerId to be a proposer.
    // TODO: VRF will be integrated later.
    peers.into_iter().min().expect("No trusted peers found!")
}
/// Choose a proposer that is going to be the single leader (relevant for a mock fixed proposer
/// election only).
Choose a proposer that is going to be the single leader (relevant for a mock fixed proposer
election only).
Choose a proposer that is going to be the single leader ( relevant for a mock fixed proposer election only ) .
pub fn choose_leader(peers: Vec<Author>) -> Author {
    // As it is just a tmp hack function, pick the min PeerId to be a proposer.
    // TODO: VRF will be integrated later.
    peers.into_iter().min().expect("No trusted peers found!")
}
pub fn choose_leader ( peers : Vec < Author > ) -> Author { // As it is just a tmp hack function, pick the min PeerId to be a proposer. // TODO: VRF will be integrated later. peers . into_iter ( ) . min ( ) . expect ( " " ) }
Choose a proposer that is going to be the single leader (relevant for a mock fixed proposer
election only).
Choose a proposer that is going to be the single leader ( relevant for a mock fixed proposer election only ) .
peers
Vec<Author>
peers
Vec<Author>