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

Method GetRootChainInfo

lib/consensus.go:120–120  ·  view source on GitHub ↗

get the height of the root chain

(rootChainId, chainId uint64)

Source from the content-addressed store, hash-verified

118 ChainIds() []uint64 // get the list of chain ids of the nested chain subscribers
119 GetHeight(rootChainId uint64) uint64 // get the height of the root chain
120 GetRootChainInfo(rootChainId, chainId uint64) (rootChainInfo *RootChainInfo, err ErrorI) // get root-chain info 'on-demand'
121 GetValidatorSet(rootChainId, height, id uint64) (ValidatorSet, ErrorI) // get the validator set for a chain id using the RPC API
122 GetLotteryWinner(rootChainId, height, id uint64) (p *LotteryWinner, err ErrorI) // get the delegate 'lottery winner' for a chain id
123 GetOrders(rootChainId, rootHeight, id uint64) (*OrderBook, ErrorI) // get the order book for a specific 'chain id'

Callers 1

StartMethod · 0.65

Implementers 2

MockRCManagerfsm/dex_test.go
RCManagercmd/rpc/sock.go

Calls

no outgoing calls

Tested by

no test coverage detected