now returns the current coodinated chain time.
()
| 178 | |
| 179 | // now returns the current coodinated chain time. |
| 180 | func (r *runtime) now() time.Time { |
| 181 | r.timeMutex.Lock() |
| 182 | defer r.timeMutex.Unlock() |
| 183 | return time.Now().Add(r.offset) |
| 184 | } |
| 185 | |
| 186 | func (r *runtime) getChainTimeString() string { |
| 187 | diff := r.now().Sub(r.chainInitTime) |
no test coverage detected