Skip to content

Commit

Permalink
fix leader selection error (#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchiqing authored Aug 17, 2021
1 parent 624b22b commit 4a0c10d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consensus/hotstuff/committees/leader/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func SelectionForCluster(cluster protocol.Cluster, epoch protocol.Epoch) (*Leade
identities := cluster.Members()
seed, err := epoch.Seed(indices.ProtocolCollectorClusterLeaderSelection(cluster.Index())...)
if err != nil {
return nil, fmt.Errorf("could not get leader selection seed for cluster (index: %v) at epoch: %v: %w", cluster.Index(), counter, err)
}
firstView := cluster.RootBlock().Header.View
// TODO what is a good value here?
Expand Down

0 comments on commit 4a0c10d

Please sign in to comment.