From 1c4e4fa21691a2bec93ac672fabc99e8da3adbcf Mon Sep 17 00:00:00 2001 From: Leo-Besancon Date: Thu, 1 Aug 2024 13:22:23 +0200 Subject: [PATCH 1/2] Fix SlotIndexPosition from Future to Past in case slots_since returns an error --- massa-execution-worker/src/active_history.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/massa-execution-worker/src/active_history.rs b/massa-execution-worker/src/active_history.rs index 1b4c41ebb6b..021e8e8a97d 100644 --- a/massa-execution-worker/src/active_history.rs +++ b/massa-execution-worker/src/active_history.rs @@ -250,7 +250,7 @@ impl ActiveHistory { return SlotIndexPosition::Past; // too old } let index: usize = match slot.slots_since(first_slot, thread_count) { - Err(_) => return SlotIndexPosition::Future, // overflow + Err(_) => return SlotIndexPosition::Past, // overflow Ok(d) => { match d.try_into() { Ok(d) => d, From 43d083c65a194be1375f568bd7eb47c3872f18cf Mon Sep 17 00:00:00 2001 From: Leo-Besancon Date: Thu, 1 Aug 2024 13:22:56 +0200 Subject: [PATCH 2/2] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 680d261af63..f0a3c064e1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -205,7 +205,7 @@ jobs: - uses: actions-rs/cargo@v1 with: command: install - args: cargo-nextest + args: cargo-nextest --locked - uses: actions-rs/cargo@v1 with: command: nextest