Skip to content

Commit

Permalink
set gas price only for devnet
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-lj committed Oct 17, 2024
1 parent 6e7aaee commit d87f830
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
12 changes: 6 additions & 6 deletions crates/sui-protocol-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2857,14 +2857,14 @@ impl ProtocolConfig {
cfg.feature_flags
.consensus_distributed_vote_scoring_strategy = true;

cfg.group_ops_bls12381_g1_to_uncompressed_g1_cost = Some(26);
cfg.group_ops_bls12381_uncompressed_g1_to_g1_cost = Some(52);
cfg.group_ops_bls12381_uncompressed_g1_sum_base_cost = Some(26);
cfg.group_ops_bls12381_uncompressed_g1_sum_cost_per_term = Some(13);
cfg.group_ops_bls12381_uncompressed_g1_sum_max_terms = Some(2000);

if chain != Chain::Mainnet && chain != Chain::Testnet {
cfg.feature_flags.uncompressed_g1_group_elements = true;

cfg.group_ops_bls12381_g1_to_uncompressed_g1_cost = Some(26);
cfg.group_ops_bls12381_uncompressed_g1_to_g1_cost = Some(52);
cfg.group_ops_bls12381_uncompressed_g1_sum_base_cost = Some(26);
cfg.group_ops_bls12381_uncompressed_g1_sum_cost_per_term = Some(13);
cfg.group_ops_bls12381_uncompressed_g1_sum_max_terms = Some(2000);
}
}
// Use this template when making changes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,6 @@ group_ops_bls12381_g1_msm_base_cost_per_input: 52
group_ops_bls12381_g2_msm_base_cost_per_input: 52
group_ops_bls12381_msm_max_len: 32
group_ops_bls12381_pairing_cost: 52
group_ops_bls12381_g1_to_uncompressed_g1_cost: 26
group_ops_bls12381_uncompressed_g1_to_g1_cost: 52
group_ops_bls12381_uncompressed_g1_sum_base_cost: 26
group_ops_bls12381_uncompressed_g1_sum_cost_per_term: 13
group_ops_bls12381_uncompressed_g1_sum_max_terms: 2000
hmac_hmac_sha3_256_cost_base: 52
hmac_hmac_sha3_256_input_cost_per_byte: 2
hmac_hmac_sha3_256_input_cost_per_block: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,6 @@ group_ops_bls12381_g1_msm_base_cost_per_input: 52
group_ops_bls12381_g2_msm_base_cost_per_input: 52
group_ops_bls12381_msm_max_len: 32
group_ops_bls12381_pairing_cost: 52
group_ops_bls12381_g1_to_uncompressed_g1_cost: 26
group_ops_bls12381_uncompressed_g1_to_g1_cost: 52
group_ops_bls12381_uncompressed_g1_sum_base_cost: 26
group_ops_bls12381_uncompressed_g1_sum_cost_per_term: 13
group_ops_bls12381_uncompressed_g1_sum_max_terms: 2000
hmac_hmac_sha3_256_cost_base: 52
hmac_hmac_sha3_256_input_cost_per_byte: 2
hmac_hmac_sha3_256_input_cost_per_block: 2
Expand Down

0 comments on commit d87f830

Please sign in to comment.