MCPcopy Create free account
hub / github.com/canopy-network/canopy / RootChainHeight

Method RootChainHeight

controller/controller.go:403–406  ·  view source on GitHub ↗

RootChainHeight() returns the height of the canopy root-chain

()

Source from the content-addressed store, hash-verified

401
402// RootChainHeight() returns the height of the canopy root-chain
403func (c *Controller) RootChainHeight() uint64 {
404 chainId, _ := c.FSM.GetRootChainId()
405 return c.RCManager.GetHeight(chainId)
406}
407
408// ChainHeight() returns the height of this target chain
409func (c *Controller) ChainHeight() uint64 { return c.FSM.Height() }

Callers 1

Calls 2

GetHeightMethod · 0.65
GetRootChainIdMethod · 0.45

Tested by

no test coverage detected