MedianTimeSource provides a mechanism to add several time samples which are used to determine a median time which is then used as an offset to the local clock.
db database.DB chainParams *chaincfg.Params timeSource MedianTimeSource notifications NotificationCallback sigCache *txscript.SigCache
// and add time samples from other peers on the network so the local // time is adjusted to be in agreement with other peers. TimeSource MedianTimeSource // Notifications defines a callback to which notifications will be sent
// Ensure the medianTime type implements the MedianTimeSource interface. var _ MedianTimeSource = (*medianTime)(nil) // AdjustedTime returns the current time adjusted by the median time offset as