LoadRootChainOrderBook() gets the order book from the root-chain
(rootChainId, rootHeight uint64)
| 215 | |
| 216 | // LoadRootChainOrderBook() gets the order book from the root-chain |
| 217 | func (c *Controller) LoadRootChainOrderBook(rootChainId, rootHeight uint64) (*lib.OrderBook, lib.ErrorI) { |
| 218 | return c.RCManager.GetOrders(rootChainId, rootHeight, c.Config.ChainId) |
| 219 | } |
| 220 | |
| 221 | // GetRootChainLotteryWinner() gets the pseudorandomly selected delegate to reward and their cut |
| 222 | func (c *Controller) GetRootChainLotteryWinner(fsm *fsm.StateMachine, rootHeight uint64) (winner *lib.LotteryWinner, err lib.ErrorI) { |