github.com/koko1123/flow-go-1@v0.29.6/state/protocol/inmem/cluster.go (about)

     1  package inmem
     2  
     3  import (
     4  	clustermodel "github.com/koko1123/flow-go-1/model/cluster"
     5  	"github.com/koko1123/flow-go-1/model/flow"
     6  )
     7  
     8  type Cluster struct {
     9  	enc EncodableCluster
    10  }
    11  
    12  func (c Cluster) Index() uint                     { return c.enc.Index }
    13  func (c Cluster) ChainID() flow.ChainID           { return c.enc.RootBlock.Header.ChainID }
    14  func (c Cluster) EpochCounter() uint64            { return c.enc.Counter }
    15  func (c Cluster) Members() flow.IdentityList      { return c.enc.Members }
    16  func (c Cluster) RootBlock() *clustermodel.Block  { return c.enc.RootBlock }
    17  func (c Cluster) RootQC() *flow.QuorumCertificate { return c.enc.RootQC }