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

Remove deprecation notice for --mainnet flag #3690

Merged
merged 2 commits into from
Sep 12, 2023
Merged

Conversation

nkuba
Copy link
Member

@nkuba nkuba commented Jul 19, 2023

We planned to remove the --mainnet flag, as it seemed unnecessary, as the client running without any network flag runs for mainnet by default. But from an infrastructure administrator perspective, the flag may be actually useful when running the application on multiple environments. It's much easier to maintain a common template where the administrator will have to change the value of the flag rather than set the flag for some environments and remove it for mainnet.

When running the application for mainnet an administrator will have two possibilities:

  • add --mainnet flag,
  • don't define any network flag.

When running the application for testnet an administrator will have to add --testnet flag.

We planned to remove the `--mainnet` flag, as it seemed unnecessary, as
the client running without any network flag runs for mainnet by default.
But from infrastructure adminstrator perspective the flag may be actually
usefull when running the application on multiple environments. It's much
easier to maintain a common template where the administrator will have
to change value of the flag rather than set the flag for some
environments and remove it for mainnet.
@nkuba nkuba self-assigned this Jul 19, 2023
@nkuba nkuba requested a review from a team July 19, 2023 13:19
@dimpar dimpar added this to the v2.0.0-m5 milestone Sep 7, 2023
cmd.PersistentFlags().Bool(
network.Mainnet.String(),
false,
"Mainnet network (DEPRECATED)",
"Mainnet network",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On line 99 we have a comment about removing the mainnet flag. Can you pls also remove it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See ca8bdb8

@dimpar
Copy link
Contributor

dimpar commented Sep 12, 2023

Left just one minor comment. Looks good to me.

@lukasz-zimnoch lukasz-zimnoch self-assigned this Sep 12, 2023
@dimpar dimpar merged commit a226a86 into main Sep 12, 2023
29 checks passed
@dimpar dimpar deleted the mainnet-flag-no-deprecate branch September 12, 2023 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants