-
Notifications
You must be signed in to change notification settings - Fork 200
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 skip preflight to CLI #3339
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really good work overall, thanks for the contribution! Just a few things to fixup, then we can land this
Thank you very much for the review! Pushed the changes :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of little nits, then we can get this in!
Be sure to run |
You can add |
You can always push your change and see if it passes CI, but it's better to run things locally. Are you missing a protobuf compiler on your machine? |
I have it installed yes, via homebrew. |
Ah darn, sorry, I forgot to mention -- can you add an entry in the changelog for this feature? Under 2.2.0, how about something like:
|
Added the changelog entry |
Might need a rebase -- there's a conflict |
If this PR represents a change to the public RPC API:
Thank you for keeping the RPC clients in sync with the server API @Woody4618. |
The Firedancer team maintains a line-for-line reimplementation of the |
The tests had skip_preflight set to true by default. But the value was not actually used. Now it is, so i adjusted the tests.
a3ddc63
to
e242fbe
Compare
@Woody4618 please double-check it, but this should be correct |
e242fbe
to
628ec33
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
@febo can I get an approval here? I cleaned up the branch after a rebase, and it won't let me merge since I was the last pusher |
Problem
CLI was missing the option to set skip-preflight option.
This is especially useful because some RPC providers are not using swqos when preflight is enabled.
This is speeding up program deployments by a lot using these RPC providers.
Summary of Changes
I added skip-preflight as global flag and changed all the places where transactions are sent to use that flag.
Some test had the skip preflight flag set to true, but it was not actually used. So these tests that were parsing the responses are adjusted to handle both cases.
Refactoring?
In an additional step if would maybe be nice to remove CommitmentConfig from the CliConfig and move it into the RpcSendTransactionConfig. But that looked like a bit of a bigger refactoring so I didnt include it.
Another option would also be moving RpcSendTransactionConfig directly into RpcClient to enable it everywhere. But that is an even bigger refactoring.