RootChainId() returns the root chain id according to the FSM
(height uint64)
| 319 | |
| 320 | // RootChainId() returns the root chain id according to the FSM |
| 321 | func (c *Controller) LoadRootChainId(height uint64) (rootChainId uint64) { |
| 322 | // use the state machine to get the root chain id |
| 323 | rootChainId, err := c.FSM.LoadRootChainId(height) |
| 324 | // if an error occurred |
| 325 | if err != nil { |
| 326 | // log the error |
| 327 | c.log.Error(err.Error()) |
| 328 | } |
| 329 | // exit |
| 330 | return |
| 331 | } |
| 332 | |
| 333 | // LoadCertificate() gets the certificate for from the indexer at a specific height |
| 334 | func (c *Controller) LoadCertificate(height uint64) (*lib.QuorumCertificate, lib.ErrorI) { |
no test coverage detected