Skip to content

Commit

Permalink
rebase after another feature
Browse files Browse the repository at this point in the history
  • Loading branch information
joyqvq committed Jul 5, 2024
1 parent f45aa7b commit c4779b9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions crates/sui-protocol-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ const MAX_PROTOCOL_VERSION: u64 = 52;
// Version 51: Switch to DKG V1.
// Version 52: Emit `CommitteeMemberUrlUpdateEvent` when updating bridge node url.
// std::config native functions.
<<<<<<< HEAD
// Modified sui-system package to enable withdrawal of stake before it becomes active.
// Enable soft bundle in devnet and testnet.
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
// Core macro visibility in sui core framework.
// Enable Mysticeti on mainnet.

Expand All @@ -164,6 +164,10 @@ const MAX_PROTOCOL_VERSION: u64 = 52;
>>>>>>> 43070af820 (rebase)
// Add support for passkey in devnet.
>>>>>>> 76a6eb2f98 (add protocol config, simtest)
=======
// Add support for passkey in devnet.

>>>>>>> 7bb7af4712 (rebase after another feature)
#[derive(Copy, Clone, Debug, Hash, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
pub struct ProtocolVersion(u64);

Expand Down Expand Up @@ -527,6 +531,7 @@ struct FeatureFlags {
// If true, enable the coin deny list V2.
#[serde(skip_serializing_if = "is_false")]
enable_coin_deny_list_v2: bool,

// Enable passkey auth (SIP-9)
#[serde(skip_serializing_if = "is_false")]
passkey_auth: bool,
Expand Down Expand Up @@ -2480,7 +2485,8 @@ impl ProtocolConfig {
cfg.max_accumulated_txn_cost_per_object_in_checkpoint = Some(100);
cfg.feature_flags.per_object_congestion_control_mode =
PerObjectCongestionControlMode::TotalTxCount;

}

if chain != Chain::Testnet && chain != Chain::Mainnet {
cfg.feature_flags.passkey_auth = true;
}
Expand Down Expand Up @@ -2647,8 +2653,8 @@ impl ProtocolConfig {
pub fn set_enable_soft_bundle_for_testing(&mut self, val: bool) {
self.feature_flags.soft_bundle = val;
}
pub fn set_passkey_auth_for_testing(&mut self, val: bool) {

pub fn set_passkey_auth_for_testing(&mut self, val: bool) {
self.feature_flags.passkey_auth = val
}
}
Expand Down

0 comments on commit c4779b9

Please sign in to comment.