now returns the current coordinated chain time.
()
| 938 | |
| 939 | // now returns the current coordinated chain time. |
| 940 | func (c *Chain) now() time.Time { |
| 941 | c.RLock() |
| 942 | defer c.RUnlock() |
| 943 | return time.Now().Add(c.offset).UTC() |
| 944 | } |
| 945 | |
| 946 | func (c *Chain) startService(chain *Chain) { |
| 947 | c.server.RegisterService(route.BlockProducerRPCName, &ChainRPCService{chain: chain}) |