diff --git a/massa-execution-worker/src/speculative_executed_denunciations.rs b/massa-execution-worker/src/speculative_executed_denunciations.rs index 8c7466bc84..1c8f9bb2c1 100644 --- a/massa-execution-worker/src/speculative_executed_denunciations.rs +++ b/massa-execution-worker/src/speculative_executed_denunciations.rs @@ -73,10 +73,8 @@ impl SpeculativeExecutedDenunciations { HistorySearchResult::Present(_) => { return true; } - HistorySearchResult::Absent => { - return false; - } HistorySearchResult::NoInfo => {} + HistorySearchResult::Absent => unreachable!(), // fetch_executed_denunciation does not return Absent } // check in the final state diff --git a/massa-execution-worker/src/speculative_executed_ops.rs b/massa-execution-worker/src/speculative_executed_ops.rs index 1c3d103767..d3d0d81c0e 100644 --- a/massa-execution-worker/src/speculative_executed_ops.rs +++ b/massa-execution-worker/src/speculative_executed_ops.rs @@ -67,10 +67,8 @@ impl SpeculativeExecutedOps { HistorySearchResult::Present(_) => { return true; } - HistorySearchResult::Absent => { - return false; - } HistorySearchResult::NoInfo => {} + HistorySearchResult::Absent => unreachable!(), // fetch_executed_op does not return Absent } // check in the final state