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

pcli: 🌷 add a top-level --grpc-url override #4585

Merged
merged 2 commits into from
Jun 11, 2024

Conversation

cratelyn
Copy link
Contributor

when a pcli user initializes their configuration, they provide the init command with the grpc url of a fullnode, which is stored in pcli's configuration file. by default, this is found at ~/.local/share/pcli/config.toml.

if that fullnode is later encountering issues, this can render many pcli commands unusable, without a clear workaround. this is a small patch, providing a top-level --grpc-url option that will override the config file's GRPC url.

this can help users temporarily send requests to a different fullnode, until their preferred default comes back online.

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    only client-side changes

cratelyn added 2 commits June 11, 2024 12:13
rustfmt is reticent to format attributes. let's indent this
conventionally.
when a pcli user initializes their configuration, they provide the
`init` command with the grpc url of a fullnode, which is stored in
pcli's configuration file. by default, this is found at
`~/.local/share/pcli/config.toml`.

if that fullnode is later encountering issues, this can render many pcli
commands unusable, without a clear workaround. this is a small patch,
providing a top-level `--grpc-url` option that will override the config
file's GRPC url.

this can help users temporarily send requests to a different fullnode,
until their preferred default comes back online.
@cratelyn cratelyn added the A-client Area: Design and implementation for client functionality label Jun 11, 2024
@cratelyn cratelyn added this to the Sprint 8 milestone Jun 11, 2024
@cratelyn cratelyn self-assigned this Jun 11, 2024
@hdevalence
Copy link
Member

this is a great ux improvement!

@cratelyn cratelyn marked this pull request as ready for review June 11, 2024 16:51
@cratelyn cratelyn merged commit 3f7ccbd into main Jun 11, 2024
13 checks passed
@cratelyn cratelyn deleted the kate/pcli-grpc-url-override branch June 11, 2024 19:50
@conorsch conorsch mentioned this pull request Jun 20, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-client Area: Design and implementation for client functionality
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants