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

Add ping cli option to use CommitmentLevel::Max #6775

Merged
merged 1 commit into from Nov 7, 2019

Conversation

CriesofCarrots
Copy link
Contributor

Problem

Default rpc commitment is now set to CommitmentLevel::Max. In order to prevent slow-down of solana ping transactions, the default was overridden. However, it would be nice to use ping to see how long it takes for a transaction confirmation to reach root.

Summary of Changes

  • Add ping cli arg max-commitment. If present, ping requests rooted transaction confirmations (CommitmentLevel::Max). If absent, ping continues to request recent transaction confirmations (CommitmentLevel::Recent)

@CriesofCarrots
Copy link
Contributor Author

I'm not in love with the arg text max-commitment, but best I could come up with so far.

cli/src/cluster_query.rs Outdated Show resolved Hide resolved
mvines
mvines previously approved these changes Nov 6, 2019
@mergify mergify bot dismissed mvines’s stale review November 6, 2019 22:03

Pull request has been modified.

@CriesofCarrots CriesofCarrots added the automerge Merge this Pull Request automatically once CI passes label Nov 6, 2019
@solana-grimes
Copy link
Collaborator

💔 Unable to automerge due to CI failure

@solana-grimes solana-grimes removed the automerge Merge this Pull Request automatically once CI passes label Nov 6, 2019
@mvines mvines merged commit 079682f into solana-labs:master Nov 7, 2019
@CriesofCarrots CriesofCarrots deleted the ping-arg branch November 8, 2019 14:59
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.

None yet

3 participants