Skip to content

Commit

Permalink
[consensus] Enable zstd compression for consensus tonic network in ma…
Browse files Browse the repository at this point in the history
…innet (#21177)

---

## 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.

- [X] Protocol: Enable zstd compression for consensus tonic network in
mainnet
- [ ] Nodes (Validators and Full nodes): 
- [ ] gRPC:
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
  • Loading branch information
arun-koshy authored Feb 11, 2025
1 parent 2ecc920 commit c33d3af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/sui-protocol-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const MAX_PROTOCOL_VERSION: u64 = 74;
// Enable probing for accepted rounds in round prober in mainnet
// Version 74: Enable load_nitro_attestation move function in sui framework in devnet.
// Enable all gas costs for load_nitro_attestation.
//
// Enable zstd compression for consensus tonic network in mainnet.

#[derive(Copy, Clone, Debug, Hash, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
pub struct ProtocolVersion(u64);
Expand Down Expand Up @@ -3237,6 +3237,9 @@ impl ProtocolConfig {
cfg.nitro_attestation_parse_cost_per_byte = Some(50);
cfg.nitro_attestation_verify_base_cost = Some(49632 * 50);
cfg.nitro_attestation_verify_cost_per_cert = Some(52369 * 50);

// Enable zstd compression for consensus in mainnet
cfg.feature_flags.consensus_zstd_compression = true;
}
// Use this template when making changes:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ feature_flags:
native_charging_v2: true
convert_type_argument_error: true
variant_nodes: true
consensus_zstd_compression: true
max_tx_size_bytes: 131072
max_input_objects: 2048
max_size_written_objects: 5000000
Expand Down

0 comments on commit c33d3af

Please sign in to comment.