Skip to content

Commit

Permalink
Set max_deferral_rounds_for_congestion_control to 10 (MystenLabs#18208)
Browse files Browse the repository at this point in the history
## Description 

Deferred txn due to congestion will be cancelled after 10 consensus
commit rounds.

Note that this setting has no effect if congestion control is not on.

## 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 17, 2024
1 parent 96460cf commit a0247b6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions crates/sui-protocol-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2388,6 +2388,9 @@ impl ProtocolConfig {
}

cfg.feature_flags.mysticeti_num_leaders_per_round = Some(1);

// Set max transaction deferral to 10 consensus rounds.
cfg.max_deferral_rounds_for_congestion_control = Some(10);
}
// Use this template when making changes:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,4 +270,4 @@ max_age_of_jwk_in_epochs: 1
random_beacon_reduction_allowed_delta: 800
consensus_max_transaction_size_bytes: 262144
consensus_max_transactions_in_block_bytes: 6291456

max_deferral_rounds_for_congestion_control: 10
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,6 @@ random_beacon_dkg_timeout_round: 3000
random_beacon_min_round_interval_ms: 200
consensus_max_transaction_size_bytes: 262144
consensus_max_transactions_in_block_bytes: 6291456
max_deferral_rounds_for_congestion_control: 10
min_checkpoint_interval_ms: 200
checkpoint_summary_version_specific_data: 1

Original file line number Diff line number Diff line change
Expand Up @@ -286,5 +286,6 @@ random_beacon_dkg_timeout_round: 3000
random_beacon_min_round_interval_ms: 200
consensus_max_transaction_size_bytes: 262144
consensus_max_transactions_in_block_bytes: 6291456
max_deferral_rounds_for_congestion_control: 10
min_checkpoint_interval_ms: 200
checkpoint_summary_version_specific_data: 1

0 comments on commit a0247b6

Please sign in to comment.