Skip to content

Commit

Permalink
Improve handling of HistorySearchResult for fetched executed_ops/denu…
Browse files Browse the repository at this point in the history
…nciations (#4735)

* Improve handling of HistorySearchResult

* Fix CI
  • Loading branch information
Leo-Besancon authored Aug 2, 2024
1 parent 7bf36bd commit 77898f2
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 77898f2

Please sign in to comment.