From 4a0c10d74f1bcaadfdfec8c325efa411acd1a084 Mon Sep 17 00:00:00 2001 From: Leo Zhang Date: Tue, 17 Aug 2021 15:21:49 -0700 Subject: [PATCH] fix leader selection error (#1148) --- consensus/hotstuff/committees/leader/cluster.go | 1 + 1 file changed, 1 insertion(+) diff --git a/consensus/hotstuff/committees/leader/cluster.go b/consensus/hotstuff/committees/leader/cluster.go index 54fce5cc17b..623f03a7385 100644 --- a/consensus/hotstuff/committees/leader/cluster.go +++ b/consensus/hotstuff/committees/leader/cluster.go @@ -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?