Skip to content

Commit

Permalink
implement lteq on Membership
Browse files Browse the repository at this point in the history
  • Loading branch information
haaase committed Oct 21, 2024
1 parent e818f0e commit df1a00a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,8 @@ object Membership {
left.log,
left.membershipChanging || right.membershipChanging
)

override def lteq(left: Membership[A, C, D], right: Membership[A, C, D]): Boolean =
if left.counter < right.counter then true
else Lattice[D[A]].lteq(left.innerConsensus, right.innerConsensus) && Lattice[C[Set[Uid]]].lteq(left.membersConsensus, right.membersConsensus)
}

0 comments on commit df1a00a

Please sign in to comment.