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

fix: downshift preflightCommitment to processed when bypassing preflight checks #2415

Conversation

steveluscher
Copy link
Collaborator

@steveluscher steveluscher commented Apr 2, 2024

Summary

There's a bug in the sendTransaction RPC method where, when bypassing preflight, we nevertheless materially use the value of preflightCommitment to determine how to behave when sending the transaction.

If you supply nothing – as you might think appropriate when skipping preflight – then the default of finalized will be used. Far from irrelevant, such a value can actually affect the retry behaviour of the send-transaction-service (STS). Read anza-xyz/agave#483 for more detail.

In this PR, we try to get ahead of anza-xyz/agave#483 by setting this value to processed in the client. Until the server PR is deployed widely, this should cover those who choose to upgrade

Addresses anza-xyz/agave#479

Test plan

pnpm turbo test:unit:node test:unit:browser

Copy link

changeset-bot bot commented Apr 2, 2024

🦋 Changeset detected

Latest commit: 7f406cc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 35 packages
Name Type
@solana/rpc-transformers Patch
@solana/rpc-api Patch
@solana/rpc-subscriptions-api Patch
@solana/rpc-subscriptions Patch
@solana/rpc Patch
@solana/sysvars Patch
@solana/web3.js-experimental Patch
@solana/transaction-confirmation Patch
@solana/rpc-graphql Patch
@solana/accounts Patch
@solana/addresses Patch
@solana/assertions Patch
@solana/codecs-core Patch
@solana/codecs-data-structures Patch
@solana/codecs-numbers Patch
@solana/codecs-strings Patch
@solana/codecs Patch
@solana/compat Patch
@solana/errors Patch
@solana/functional Patch
@solana/instructions Patch
@solana/keys Patch
@solana/options Patch
@solana/programs Patch
@solana/rpc-parsed-types Patch
@solana/rpc-spec-types Patch
@solana/rpc-spec Patch
@solana/rpc-subscriptions-spec Patch
@solana/rpc-subscriptions-transport-websocket Patch
@solana/rpc-transport-http Patch
@solana/rpc-types Patch
@solana/signers Patch
@solana/transactions Patch
@solana/webcrypto-ed25519-polyfill Patch
@solana/web3.js-legacy-sham Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @steveluscher and the rest of your teammates on Graphite Graphite

@steveluscher steveluscher force-pushed the 04-02-fix_downshift_preflightcommitment_to_processed_when_bypassing_preflight_checks branch from c00f0c9 to 6199e68 Compare April 2, 2024 19:48
@steveluscher steveluscher force-pushed the 04-02-fix_downshift_preflightcommitment_to_processed_when_bypassing_preflight_checks branch from 6199e68 to 7f406cc Compare April 2, 2024 19:49
Copy link
Collaborator

@buffalojoec buffalojoec left a comment

Choose a reason for hiding this comment

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

Lgtm!

@steveluscher steveluscher merged commit c801637 into master Apr 3, 2024
8 checks passed
@steveluscher steveluscher deleted the 04-02-fix_downshift_preflightcommitment_to_processed_when_bypassing_preflight_checks branch April 3, 2024 21:22
Copy link
Contributor

github-actions bot commented Apr 3, 2024

🎉 This PR is included in version 1.91.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Contributor

Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants