Skip to content

Commit

Permalink
Reformat comments in dispute-coordinator
Browse files Browse the repository at this point in the history
  • Loading branch information
tdimitrov committed Mar 1, 2022
1 parent 30538c3 commit ebd463a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion node/core/dispute-coordinator/src/real/ordering/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub struct OrderingProvider {
pub struct CandidateComparator {
/// Block number of the relay parent.
///
/// Important, so we will be participating in oldest disputes first.
/// This is important because we will be participating in oldest disputes first.
///
/// Note: In theory it would make more sense to use the `BlockNumber` of the including
/// block, as inclusion time is the actual relevant event when it comes to ordering. The
Expand Down
11 changes: 5 additions & 6 deletions node/core/dispute-coordinator/src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,19 @@ pub enum DisputeStatus {
/// The dispute is active and unconcluded.
#[codec(index = 0)]
Active,
/// The dispute has been concluded in favor of the candidate
/// since the given timestamp.
/// The dispute was in favor of the candidate since the given timestamp.
#[codec(index = 1)]
ConcludedFor(Timestamp),
/// The dispute has been concluded against the candidate
/// since the given timestamp.
/// The dispute was concluded against the candidate since the given timestamp.
///
/// This takes precedence over `ConcludedFor` in the case that
/// both are true, which is impossible unless a large amount of
/// validators are participating on both sides.
#[codec(index = 2)]
ConcludedAgainst(Timestamp),
/// Dispute has been confirmed (more than `byzantine_threshold` have already participated/ or
/// we have seen the candidate included already/participated successfully ourselves).
/// Dispute was confirmed (more than `byzantine_threshold` from all validators have already
/// participated or we have seen the candidate included already/participated successfully
/// ourselves).
#[codec(index = 3)]
Confirmed,
}
Expand Down

0 comments on commit ebd463a

Please sign in to comment.