Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2463 from suchapalaver/fix/partial-ord-implementa…
Browse files Browse the repository at this point in the history
…tion-for-prune-candidate

Fix PartialOrd implementation for prune candidate
  • Loading branch information
vaporos committed Nov 20, 2023
2 parents 5454770 + 24714b7 commit 4f6994e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/src/state/state_pruning_manager.rs
Expand Up @@ -49,7 +49,7 @@ impl Ord for PruneCandidate {

impl PartialOrd for PruneCandidate {
fn partial_cmp(&self, other: &PruneCandidate) -> Option<Ordering> {
Some(Ordering::reverse(self.0.cmp(&other.0)))
Some(self.cmp(other))
}
}

Expand Down

0 comments on commit 4f6994e

Please sign in to comment.