Skip to content

Commit

Permalink
Revert "Revert "Add WaitForSynced to beacon node for validator startup (
Browse files Browse the repository at this point in the history
#5366)""

This reverts commit 927d8d9.
  • Loading branch information
terencechain committed Apr 18, 2020
1 parent 595ffb1 commit 08e7695
Show file tree
Hide file tree
Showing 5 changed files with 349 additions and 47 deletions.
8 changes: 8 additions & 0 deletions beacon-chain/core/feed/state/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const (
ChainStarted
// Initialized is sent when the internal beacon node's state is ready to be accessed.
Initialized
// Synced is sent when the beacon node has completed syncing and is ready to participate in the network.
Synced
)

// BlockProcessedData is the data sent with BlockProcessed events.
Expand All @@ -27,6 +29,12 @@ type ChainStartedData struct {
StartTime time.Time
}

// SyncedData is the data sent with Synced events.
type SyncedData struct {
// StartTime is the time at which the chain started.
StartTime time.Time
}

// InitializedData is the data sent with Initialized events.
type InitializedData struct {
// StartTime is the time at which the chain started.
Expand Down
Loading

0 comments on commit 08e7695

Please sign in to comment.