Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoConnections = errors.New("no connections") ErrP2PSyncOngoing = errors.New("P2P synchronization isn't finished") ErrSelfEventsOngoing = errors.New("not downloaded all the self-events") ErrJustBecameValidator = errors.New("just joined the validators group") ErrJustConnected = errors.New("recently connected") ErrJustP2PSynced = errors.New("waiting additional time") )
Functions ¶
func DetectParallelInstance ¶
func DetectParallelInstance(s SyncStatus, threshold time.Duration) bool
DetectParallelInstance should be called after downloading a self-event which wasn't created on this instance Returns true if a parallel instance is likely be running
func SyncedToEmit ¶
SyncedToEmit should be called before emitting any events It returns nil if node is allowed to emit events Otherwise, node returns a minimum duration of how long node should wait before emitting
Types ¶
Click to show internal directories.
Click to hide internal directories.