Skip to content

Commit 8c5faad

Browse files
committed
remove comment on internal node ratio constraint
1 parent ce24343 commit 8c5faad

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmd/util/cmd/common/clusters.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ import (
2424
// The identity of internal and partner nodes in each cluster is deterministically randomized
2525
// using the provided entropy `randomSource`. Ideally this entropy should be derived from the random beacon of the
2626
// previous epoch, or some other verifiable random source.
27-
// The function guarantees a specific constraint when partitioning the nodes into clusters:
28-
// Strictly more than 1/3 of nodes in each cluster must be internal nodes. If the constraint can't be
29-
// satisfied, an exception is returned. However, note that a successful cluster assignment does not imply
30-
// that enough cluster votes can be obtained from internal nodes to create any cluster QCs.
3127
// Note that if an exception is returned with a certain number of internal/partner nodes, there is no chance
3228
// of succeeding the assignment by re-running the function without increasing the internal nodes ratio.
3329
// Args:
@@ -96,6 +92,7 @@ func ConstructClusterAssignment(log zerolog.Logger, partnerNodes, internalNodes
9692
}
9793

9894
// check the 2/3 constraint: for every cluster `i`, constraint[i] must be strictly positive
95+
// for a QC to be created without external votes
9996
canConstructAllClusterQCs := true
10097
for i := 0; i < numCollectionClusters; i++ {
10198
if constraint[i] <= 0 {

0 commit comments

Comments
 (0)