From c316e44c37ae060ae0c1d6981bb6f120d89ed2af Mon Sep 17 00:00:00 2001 From: Leo-Besancon Date: Tue, 18 Jun 2024 09:36:59 +0200 Subject: [PATCH] Create MIP "MIP-0001-ASC-BugFix" --- massa-versioning/src/mips.rs | 28 ++++++++++++---------------- massa-versioning/src/versioning.rs | 1 + 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/massa-versioning/src/mips.rs b/massa-versioning/src/mips.rs index 3c3e86592e2..66394b6bdd1 100644 --- a/massa-versioning/src/mips.rs +++ b/massa-versioning/src/mips.rs @@ -7,23 +7,19 @@ use massa_time::MassaTime; #[allow(unused_imports)] use crate::versioning::{MipComponent, MipInfo, MipState}; -pub fn get_mip_list() -> [(MipInfo, MipState); 0] { - // placeholder +pub fn get_mip_list() -> [(MipInfo, MipState); 1] { let mip_list = [ - /* - (MipInfo { - name: "MIP-0000".to_string(), - version: 0, - components: BTreeMap::from([ - (MipComponent::Address, 0), - (MipComponent::KeyPair, 0), - ]), - start: MassaTime::from_millis(0), - timeout: MassaTime::from_millis(0), - activation_delay: MassaTime::from_millis(0), - }, - MipState::new(MassaTime::from_millis(0))) - */ + ( + MipInfo { + name: "MIP-0001-ASC-BugFix".to_string(), + version: 1, + components: BTreeMap::from([(MipComponent::AscExecution, 1)]), + start: MassaTime::from_millis(0), // TODO: set when known + timeout: MassaTime::from_millis(0), // TODO: set when known + activation_delay: MassaTime::from_millis(3 * 24 * 60 * 60 * 1000), // TODO: set when known, 3 days as an example + }, + MipState::new(MassaTime::from_millis(0)), + ), // TODO: set when known, (when the MIP becomes defined, e.g. when merged to main branch) ]; // debug!("MIP list: {:?}", mip_list); diff --git a/massa-versioning/src/versioning.rs b/massa-versioning/src/versioning.rs index 2c73ef54941..d9937854218 100644 --- a/massa-versioning/src/versioning.rs +++ b/massa-versioning/src/versioning.rs @@ -45,6 +45,7 @@ pub enum MipComponent { Block, VM, FinalStateHashKind, + AscExecution, #[doc(hidden)] #[num_enum(default)] __Nonexhaustive,