MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / now

Method now

blockproducer/chain.go:940–944  ·  view source on GitHub ↗

now returns the current coordinated chain time.

()

Source from the content-addressed store, hash-verified

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

Callers 1

syncHeadsMethod · 0.95

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected