INTERNAL CALLS BELOW LoadIsOwnRoot() returns if this chain is its own root (base)
()
| 306 | |
| 307 | // LoadIsOwnRoot() returns if this chain is its own root (base) |
| 308 | func (c *Controller) LoadIsOwnRoot() (isOwnRoot bool) { |
| 309 | // use the state machine to check if this chain is the root chain |
| 310 | isOwnRoot, err := c.FSM.LoadIsOwnRoot() |
| 311 | // if an error occurred |
| 312 | if err != nil { |
| 313 | // log the error |
| 314 | c.log.Error(err.Error()) |
| 315 | } |
| 316 | // exit |
| 317 | return |
| 318 | } |
| 319 | |
| 320 | // RootChainId() returns the root chain id according to the FSM |
| 321 | func (c *Controller) LoadRootChainId(height uint64) (rootChainId uint64) { |
nothing calls this directly
no test coverage detected