Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support MARKETS_API_INFO env var, and markets-repo, markets-api-url CLI flags. #6936

Merged
merged 11 commits into from
Jul 29, 2021

Conversation

raulk
Copy link
Member

@raulk raulk commented Jul 29, 2021

Closes #6935.

Adds support for the MARKETS_API_INFO env variable, markets-api-url flag, and markets-repo flag.

The markets API endpoint/client is now exposed through GetMarketsAPI(), which works with both monolith and split deployments by handling multiple environment variables in order of precedence.

Command actions have been refactored to use the appropriate API (GetStorageMinerAPI, GetMarketsAPI).

In the near future, we want to create a lotus-markets binary entrypoint. Until then, markets and storage miner client commands have a single entrypoint lotus-miner, which creates ambiguity when calling common commands (e.g. log, auth, pprof, net).

To solve for that, I've added a flag to select the markets node:

lotus-miner --call-on-markets log list

This is marked as temporary, because we ultimately don't want it here, but we also don't have the bandwidth to create the lotus-markets entrypoint just now.


This PR does not affect the miner server-side, only the lotus-miner client CLI UX.

@jacobheun jacobheun added epic/MRA team/ignite Issues and PRs being tracked by Team Ignite at Protocol Labs labels Jul 29, 2021
@raulk raulk marked this pull request as ready for review July 29, 2021 13:36
@raulk raulk requested a review from a team as a code owner July 29, 2021 13:36
@raulk raulk requested a review from nonsense July 29, 2021 13:36
cli/auth.go Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team/ignite Issues and PRs being tracked by Team Ignite at Protocol Labs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dedicated env var for lotus markets
5 participants