pub fn get_participants_with_state(
    rpc_client: &RpcClient,
    state: Option<ParticipantState>
) -> Result<HashMap<Pubkey, Participant>, Box<dyn Error>>