Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Besancon committed Jan 20, 2025
1 parent b13b5ce commit 3a3c99e
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions massa-versioning/src/mips.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,38 @@ use massa_time::MassaTime;
use crate::versioning::{MipComponent, MipInfo, MipState};

#[cfg(not(feature = "test-exports"))]
pub fn get_mip_list() -> [(MipInfo, MipState); 1] {
let mip_list = [(
MipInfo {
name: "MIP-0001-Execution-BugFix-And-DeferredCalls".to_string(),
version: 1,
components: BTreeMap::from([
(MipComponent::Execution, 1),
(MipComponent::FinalState, 1),
]),
// Note: All bootstrap servers should have been updated to the latest version before the start time
start: MassaTime::from_utc_ymd_hms(2025, 01, 13, 14, 0, 0).unwrap(), // Monday, January 13, 2025 2:00:00 PM UTC
// Give 1 week for the MIP to be accepted
timeout: MassaTime::from_utc_ymd_hms(2025, 01, 20, 14, 0, 0).unwrap(), // Monday, January 20, 2025 2:00:00 PM UTC
activation_delay: MassaTime::from_millis(1 * 60 * 60 * 1000), // The MIP will be activated 1 hour after the LockedIn state
},
MipState::new(MassaTime::from_utc_ymd_hms(2025, 01, 10, 10, 0, 0).unwrap()), // Friday, January 10, 2025 10:00:00 AM UTC
),
(
MipInfo {
name: "MIP-0002-Execution-BugFix".to_string(),
version: 2,
components: BTreeMap::from([
(MipComponent::Execution, 2),
]),
// Note: All bootstrap servers should have been updated to the latest version before the start time
start: MassaTime::from_utc_ymd_hms(2025, 01, 23, 14, 0, 0).unwrap(), // Thursday, January 23, 2025 2:00:00 PM UTC
// Give 1 week for the MIP to be accepted
timeout: MassaTime::from_utc_ymd_hms(2025, 01, 30, 14, 0, 0).unwrap(), // Thursday, January 30, 2025 2:00:00 PM UTC
activation_delay: MassaTime::from_millis(1 * 60 * 60 * 1000), // The MIP will be activated 1 hour after the LockedIn state
},
MipState::new(MassaTime::from_utc_ymd_hms(2025, 01, 22, 10, 0, 0).unwrap()), // Wednesday, January 22, 2025 10:00:00 AM UTC
)];
pub fn get_mip_list() -> [(MipInfo, MipState); 2] {
let mip_list = [
(
MipInfo {
name: "MIP-0001-Execution-BugFix-And-DeferredCalls".to_string(),
version: 1,
components: BTreeMap::from([
(MipComponent::Execution, 1),
(MipComponent::FinalState, 1),
]),
// Note: All bootstrap servers should have been updated to the latest version before the start time
start: MassaTime::from_utc_ymd_hms(2025, 01, 13, 14, 0, 0).unwrap(), // Monday, January 13, 2025 2:00:00 PM UTC
// Give 1 week for the MIP to be accepted
timeout: MassaTime::from_utc_ymd_hms(2025, 01, 20, 14, 0, 0).unwrap(), // Monday, January 20, 2025 2:00:00 PM UTC
activation_delay: MassaTime::from_millis(1 * 60 * 60 * 1000), // The MIP will be activated 1 hour after the LockedIn state
},
MipState::new(MassaTime::from_utc_ymd_hms(2025, 01, 10, 10, 0, 0).unwrap()), // Friday, January 10, 2025 10:00:00 AM UTC
),
(
MipInfo {
name: "MIP-0002-Execution-BugFix".to_string(),
version: 2,
components: BTreeMap::from([(MipComponent::Execution, 2)]),
// Note: All bootstrap servers should have been updated to the latest version before the start time
start: MassaTime::from_utc_ymd_hms(2025, 01, 23, 14, 0, 0).unwrap(), // Thursday, January 23, 2025 2:00:00 PM UTC
// Give 1 week for the MIP to be accepted
timeout: MassaTime::from_utc_ymd_hms(2025, 01, 30, 14, 0, 0).unwrap(), // Thursday, January 30, 2025 2:00:00 PM UTC
activation_delay: MassaTime::from_millis(1 * 60 * 60 * 1000), // The MIP will be activated 1 hour after the LockedIn state
},
MipState::new(MassaTime::from_utc_ymd_hms(2025, 01, 22, 10, 0, 0).unwrap()), // Wednesday, January 22, 2025 10:00:00 AM UTC
),
];

// debug!("MIP list: {:?}", mip_list);
#[allow(clippy::let_and_return)]
Expand Down

0 comments on commit 3a3c99e

Please sign in to comment.