2020-11-18 09:16:51 +00:00
|
|
|
package common
|
2020-02-07 11:30:26 +00:00
|
|
|
|
|
|
|
// TimeSource provides a unified way of getting the current time.
|
|
|
|
// The intention is to always use a synchronized time source
|
|
|
|
// between all components of the protocol.
|
|
|
|
//
|
|
|
|
// This is required by Whisper and Waku protocols
|
|
|
|
// which rely on a fact that all peers
|
|
|
|
// have a synchronized time source.
|
|
|
|
type TimeSource interface {
|
|
|
|
GetCurrentTime() uint64
|
|
|
|
}
|