We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
commitment
1 parent 5ebcab1 commit 4caa239Copy full SHA for 4caa239
clients/cli/src/config.rs
@@ -100,10 +100,12 @@ impl<'a> Config<'a> {
100
.unwrap_or(&cli_config.json_rpc_url),
101
);
102
let websocket_url = solana_cli_config::Config::compute_websocket_url(&json_rpc_url);
103
+ let commitment_config = CommitmentConfig::from_str(&cli_config.commitment)
104
+ .unwrap_or_else(|_| CommitmentConfig::confirmed());
105
let rpc_client = Arc::new(RpcClient::new_with_timeouts_and_commitment(
106
json_rpc_url,
107
DEFAULT_RPC_TIMEOUT,
- CommitmentConfig::confirmed(),
108
+ commitment_config,
109
DEFAULT_CONFIRM_TX_TIMEOUT,
110
));
111
let sign_only = matches.try_contains_id(SIGN_ONLY_ARG.name).unwrap_or(false);
0 commit comments