Skip to content

Commit

Permalink
modify the convergent logic to include more cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jie committed Oct 9, 2023
1 parent a7e9095 commit 3be4148
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gossiper/Interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,7 @@ func (ctx GossiperContext) IsConvergent() bool {
count1 := len(ctx.Gossip_object_storage.REV_FULL)
count2 := len(ctx.Gossip_object_storage.STH_FULL)
count3 := len(ctx.Gossip_object_storage.ACC_FULL)
if count1 == ctx.Total_CA && count2 == ctx.Total_Logger {
return true
}
if count3 == ctx.Total_Logger+ctx.Total_CA {
if count1+count2+count3 == ctx.Total_Logger+ctx.Total_CA {
return true
}
return false
Expand Down

0 comments on commit 3be4148

Please sign in to comment.