Skip to content

Commit

Permalink
Improve handling of HistorySearchResult
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Besancon committed Aug 1, 2024
1 parent 425e5c8 commit 69adef4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions massa-execution-worker/src/speculative_executed_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69adef4

Please sign in to comment.