rename flag
This commit is contained in:
parent
96cef5260c
commit
e14f3eb529
|
@ -29,7 +29,7 @@ pub struct RpcSimulateTransactionConfig {
|
|||
#[serde(default)]
|
||||
pub sig_verify: bool,
|
||||
#[serde(default)]
|
||||
pub use_most_recent_blockhash: bool,
|
||||
pub replace_recent_blockhash: bool,
|
||||
#[serde(flatten)]
|
||||
pub commitment: Option<CommitmentConfig>,
|
||||
pub encoding: Option<UiTransactionEncoding>,
|
||||
|
|
|
@ -2978,7 +2978,7 @@ pub mod rpc_full {
|
|||
}
|
||||
|
||||
let bank = &*meta.bank(config.commitment);
|
||||
if config.use_most_recent_blockhash {
|
||||
if config.replace_recent_blockhash {
|
||||
transaction.message.recent_blockhash = bank.last_blockhash();
|
||||
}
|
||||
let (result, logs) = bank.simulate_transaction(transaction);
|
||||
|
|
|
@ -3206,7 +3206,7 @@ Simulate sending a transaction
|
|||
- `sigVerify: <bool>` - if true the transaction signatures will be verified (default: false)
|
||||
- `commitment: <string>` - (optional) [Commitment](jsonrpc-api.md#configuring-state-commitment) level to simulate the transaction at (default: `"finalized"`).
|
||||
- `encoding: <string>` - (optional) Encoding used for the transaction data. Either `"base58"` (*slow*, **DEPRECATED**), or `"base64"`. (default: `"base58"`).
|
||||
- `useMostRecentBlockhash: <bool>` - (optional) if true the transaction recent blockhash will be ignored and overridden with the most recent blockhash. (default: false)
|
||||
- `replaceRecentBlockhash: <bool>` - (optional) if true the transaction recent blockhash will be replaced with the most recent blockhash. (default: false)
|
||||
|
||||
#### Results:
|
||||
|
||||
|
|
Loading…
Reference in New Issue