Skip to content

Commit

Permalink
Turn on shared object congestion control in tests and devnet (#18407)
Browse files Browse the repository at this point in the history
## Description 

Action following release schedule.

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
  • Loading branch information
halfprice authored Jun 26, 2024
1 parent 7f93f75 commit 8f48b57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/sui-protocol-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2455,6 +2455,13 @@ impl ProtocolConfig {

cfg.config_read_setting_impl_cost_base = Some(100);
cfg.config_read_setting_impl_cost_per_byte = Some(40);

// Turn on shared object congestion control in devnet.
if chain != Chain::Testnet && chain != Chain::Mainnet {
cfg.max_accumulated_txn_cost_per_object_in_checkpoint = Some(100);
cfg.feature_flags.per_object_congestion_control_mode =
PerObjectCongestionControlMode::TotalTxCount;
}
}
// Use this template when making changes:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ feature_flags:
enable_group_ops_native_functions: true
enable_group_ops_native_function_msm: true
reject_mutable_random_on_entry_functions: true
per_object_congestion_control_mode: TotalTxCount
consensus_choice: Mysticeti
consensus_network: Tonic
zklogin_max_epoch_upper_bound_delta: 30
Expand Down Expand Up @@ -291,6 +292,7 @@ random_beacon_min_round_interval_ms: 200
random_beacon_dkg_version: 1
consensus_max_transaction_size_bytes: 262144
consensus_max_transactions_in_block_bytes: 6291456
max_accumulated_txn_cost_per_object_in_checkpoint: 100
max_deferral_rounds_for_congestion_control: 10
min_checkpoint_interval_ms: 200
checkpoint_summary_version_specific_data: 1
Expand Down

0 comments on commit 8f48b57

Please sign in to comment.