(chain *Chain)
| 944 | } |
| 945 | |
| 946 | func (c *Chain) startService(chain *Chain) { |
| 947 | c.server.RegisterService(route.BlockProducerRPCName, &ChainRPCService{chain: chain}) |
| 948 | } |
| 949 | |
| 950 | // nextTick returns the current clock reading and the duration till the next turn. If duration |
| 951 | // is less or equal to 0, use the clock reading to run the next cycle - this avoids some problem |