-
Notifications
You must be signed in to change notification settings - Fork 869
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 replacementBlockhash
to the simulation return type, in preparation for Agave 2.0
#2870
Add replacementBlockhash
to the simulation return type, in preparation for Agave 2.0
#2870
Conversation
|
f42fed6
to
a8d46c8
Compare
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @steveluscher and the rest of your teammates on Graphite |
a8d46c8
to
a7187f8
Compare
7c30ca8
to
8cc8346
Compare
a7187f8
to
07a10c8
Compare
// TODO(https://github.com/solana-labs/solana-web3.js/issues/2869): Make it so that | ||
// `replacementBlockhash` only appears on the return type when `replaceRecentBlockhash` is set | ||
// to `true` in the call to `simulateTransaction`. | ||
/** The blockhash that was used to simulate the transaction when `replaceRecentBlockhash` is `true` */ | ||
replacementBlockhash?: Blockhash; |
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.
RIP. 🪦
Merge activity
|
8cc8346
to
5fa6c60
Compare
…ion for Agave 2.0
07a10c8
to
c99533c
Compare
🎉 This PR is included in version 1.94.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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. |
Summary
When you ask the simulator to
replaceRecentBlockhash
, you may like to know what the replacement blockhash was. Agave 2.0 will return it in the simulation result.It would have been nice to only include this property when
replaceRecentBlockhash
is explicitlytrue
, but I would have had to duplicate all of the overloads for the purpose, yielding 32 in total.