Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update runtime/parachains/src/disputes.rs
Co-authored-by: Bastian Köcher <[email protected]>
  • Loading branch information
eskimor and bkchr committed Jan 28, 2022
commit 931f57d5bb5d8414abe1e30f932f77a1fea27ae4
7 changes: 1 addition & 6 deletions runtime/parachains/src/disputes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,7 @@ where
(Some(_), None) => Ordering::Less,
// For local disputes, prioritize those that occur at an earlier height.
(Some(a_height), Some(b_height)) => {
let height_ord = a_height.cmp(&b_height);
if height_ord == Ordering::Equal {
a.candidate_hash.cmp(&b.candidate_hash)
} else {
height_ord
}
a_height.cmp(&b_height).then_with(|| a.candidate_hash.cmp(&b.candidate_hash))
},
// Prioritize earlier remote disputes using session as rough proxy.
(None, None) => {
Expand Down