-
Notifications
You must be signed in to change notification settings - Fork 180
/
Copy pathcluster.go
31 lines (23 loc) · 944 Bytes
/
cluster.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package protocol
import (
"github.com/onflow/flow-go/model/cluster"
"github.com/onflow/flow-go/model/flow"
)
// Cluster represents the detailed information for a particular cluster,
// for a given epoch. This information represents the INITIAL state of the
// cluster, as defined by the Epoch Preparation Protocol. It DOES NOT take
// into account state changes over the course of the epoch (ie. slashing).
type Cluster interface {
// Index returns the index for this cluster.
Index() uint
// ChainID returns chain ID for the cluster's chain.
ChainID() flow.ChainID
// EpochCounter returns the epoch counter for this cluster.
EpochCounter() uint64
// Members returns the initial set of collector nodes in this cluster.
Members() flow.IdentityList
// RootBlock returns the root block for this cluster.
RootBlock() *cluster.Block
// RootQC returns the quorum certificate for this cluster.
RootQC() *flow.QuorumCertificate
}