Switch `solana deploy` commitment default from "max" to "singleGossip"

This commit is contained in:
Michael Vines 2020-12-15 17:29:35 -08:00
parent d4a174fb7c
commit db4ac17259
2 changed files with 5 additions and 2 deletions

View File

@ -2792,7 +2792,7 @@ pub fn app<'ab, 'v>(name: &str, about: &'ab str, version: &'v str) -> App<'ab, '
.takes_value(false)
.help("Use the designated program id, even if the account already holds a large balance of SOL")
)
.arg(commitment_arg_with_default("max")),
.arg(commitment_arg_with_default("singleGossip")),
)
.subcommand(
SubCommand::with_name("program-upgrade")

View File

@ -206,7 +206,10 @@ pub fn parse_args<'a>(
verbose,
output_format,
commitment,
send_transaction_config: RpcSendTransactionConfig::default(),
send_transaction_config: RpcSendTransactionConfig {
preflight_commitment: Some(commitment.commitment),
..RpcSendTransactionConfig::default()
},
address_labels,
},
signers,