MCPcopy
hub / github.com/canopy-network/canopy / LoadCommittee

Method LoadCommittee

controller/controller.go:212–214  ·  view source on GitHub ↗

LoadCommittee() gets the ValidatorSet that is authorized to come to Consensus agreement on the Proposal for a specific height/chainId

(rootChainId, rootHeight uint64)

Source from the content-addressed store, hash-verified

210
211// LoadCommittee() gets the ValidatorSet that is authorized to come to Consensus agreement on the Proposal for a specific height/chainId
212func (c *Controller) LoadCommittee(rootChainId, rootHeight uint64) (lib.ValidatorSet, lib.ErrorI) {
213 return c.RCManager.GetValidatorSet(rootChainId, c.Config.ChainId, rootHeight)
214}
215
216// LoadRootChainOrderBook() gets the order book from the root-chain
217func (c *Controller) LoadRootChainOrderBook(rootChainId, rootHeight uint64) (*lib.OrderBook, lib.ErrorI) {

Callers 1

Calls 1

GetValidatorSetMethod · 0.65

Tested by

no test coverage detected