pub fn start_gossip_voter(
    gossip_addr: &SocketAddr,
    node_keypair: &Keypair,
    vote_filter: impl Fn((CrdsValueLabel, Transaction)) -> Option<(VoteTransaction, Transaction)> + Send + 'static,
    process_vote_tx: impl FnMut(Slot, &Transaction, &VoteTransaction, &ClusterInfo) + Send + 'static,
    sleep_ms: u64
) -> GossipVoter
Expand description

Reads votes from gossip and runs them through vote_filter to filter votes that then get passed to generate_vote_tx to create votes that are then pushed into gossip as if sent by a node with identity node_keypair.