Switch solana deploy commitment default from "max" to "singleGossip" (#14146)

(cherry picked from commit db4ac17259)

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2020-12-16 04:46:45 +00:00
committed by GitHub
parent 485b3d64a1
commit 454a9f3175
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) .takes_value(false)
.help("Use the designated program id, even if the account already holds a large balance of SOL") .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(
SubCommand::with_name("program-upgrade") SubCommand::with_name("program-upgrade")

View File

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