Add a flag to simulateTransaction to use most recent blockhash (backport #17485) (#17497)

* Add a flag to simulateTransaction to use most recent blockhash

(cherry picked from commit 96cef5260c)

* rename flag

(cherry picked from commit e14f3eb529)

* sigVerify conflicts with replace, add tests

(cherry picked from commit 660d37aadf)

Co-authored-by: Justin Starry <justin@solana.com>
This commit is contained in:
mergify[bot]
2021-05-26 01:49:52 +00:00
committed by GitHub
parent 02c4170357
commit b06bfeec8d
3 changed files with 87 additions and 2 deletions

View File

@@ -28,6 +28,8 @@ pub struct RpcSendTransactionConfig {
pub struct RpcSimulateTransactionConfig {
#[serde(default)]
pub sig_verify: bool,
#[serde(default)]
pub replace_recent_blockhash: bool,
#[serde(flatten)]
pub commitment: Option<CommitmentConfig>,
pub encoding: Option<UiTransactionEncoding>,