Skip to content

Commit

Permalink
move bridge to protocol version 45
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkuo committed May 9, 2024
1 parent 5ba6a1e commit 4a83e85
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 817 deletions.
2 changes: 1 addition & 1 deletion crates/sui-bridge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub(crate) mod sui_mock_client;
#[cfg(test)]
pub mod test_utils;

pub const BRIDGE_ENABLE_PROTOCOL_VERSION: u64 = 46;
pub const BRIDGE_ENABLE_PROTOCOL_VERSION: u64 = 45;

#[cfg(test)]
pub mod e2e_tests;
Expand Down
7 changes: 3 additions & 4 deletions crates/sui-protocol-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use tracing::{info, warn};

/// The minimum and maximum protocol versions supported by this build.
const MIN_PROTOCOL_VERSION: u64 = 1;
const MAX_PROTOCOL_VERSION: u64 = 46;
const MAX_PROTOCOL_VERSION: u64 = 45;

// Record history of protocol version allocations here:
//
Expand Down Expand Up @@ -123,7 +123,7 @@ const MAX_PROTOCOL_VERSION: u64 = 46;
// Switch between Narwhal and Mysticeti consensus in tests, devnet and testnet.
// Version 45: Use tonic networking for Mysticeti consensus.
// Set min Move binary format version to 6.
// Version 46: Add native bridge.
// Add native bridge.
// Enable native bridge in devnet

#[derive(Copy, Clone, Debug, Hash, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
Expand Down Expand Up @@ -2161,8 +2161,7 @@ impl ProtocolConfig {
}
cfg.min_move_binary_format_version = Some(6);
// Also bumps framework snapshot to fix binop issue.
}
46 => {

// enable bridge in devnet
if chain != Chain::Mainnet && chain != Chain::Testnet {
cfg.feature_flags.bridge = true;
Expand Down

This file was deleted.

Loading

0 comments on commit 4a83e85

Please sign in to comment.