github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/state/protocol/inmem/cluster.go (about) 1 package inmem 2 3 import ( 4 clustermodel "github.com/onflow/flow-go/model/cluster" 5 "github.com/onflow/flow-go/model/flow" 6 "github.com/onflow/flow-go/state/protocol" 7 ) 8 9 type Cluster struct { 10 enc EncodableCluster 11 } 12 13 var _ protocol.Cluster = (*Cluster)(nil) 14 15 func (c Cluster) Index() uint { return c.enc.Index } 16 func (c Cluster) ChainID() flow.ChainID { return c.enc.RootBlock.Header.ChainID } 17 func (c Cluster) EpochCounter() uint64 { return c.enc.Counter } 18 func (c Cluster) Members() flow.IdentitySkeletonList { return c.enc.Members } 19 func (c Cluster) RootBlock() *clustermodel.Block { return c.enc.RootBlock } 20 func (c Cluster) RootQC() *flow.QuorumCertificate { return c.enc.RootQC }