github.com/onflow/flow-go@v0.33.17/state/protocol/inmem/params.go (about)

     1  package inmem
     2  
     3  import (
     4  	"github.com/onflow/flow-go/model/flow"
     5  	"github.com/onflow/flow-go/state/protocol"
     6  )
     7  
     8  type Params struct {
     9  	enc EncodableParams
    10  }
    11  
    12  var _ protocol.GlobalParams = (*Params)(nil)
    13  
    14  func (p Params) ChainID() (flow.ChainID, error) {
    15  	return p.enc.ChainID, nil
    16  }
    17  
    18  func (p Params) SporkID() (flow.Identifier, error) {
    19  	return p.enc.SporkID, nil
    20  }
    21  
    22  func (p Params) SporkRootBlockHeight() (uint64, error) {
    23  	return p.enc.SporkRootBlockHeight, nil
    24  }
    25  
    26  func (p Params) ProtocolVersion() (uint, error) {
    27  	return p.enc.ProtocolVersion, nil
    28  }
    29  
    30  func (p Params) EpochCommitSafetyThreshold() (uint64, error) {
    31  	return p.enc.EpochCommitSafetyThreshold, nil
    32  }