Documentation ¶
Overview ¶
Package initialsync includes all initial block download and processing logic for the beacon node, using a round robin strategy and a finite-state-machine to handle edge-cases in a beacon node's sync status.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { P2P p2p.P2P DB db.ReadOnlyDatabase Chain blockchainService StateNotifier statefeed.Notifier BlockNotifier blockfeed.Notifier }
Config to set up the initial sync service.
type Service ¶ added in v0.3.0
type Service struct {
// contains filtered or unexported fields
}
Service service.
func NewService ¶ added in v1.0.0
NewService configures the initial sync service responsible for bringing the node up to the latest head of the blockchain.
func (*Service) Initialized ¶ added in v1.1.0
Initialized returns true if initial sync has been started.
func (*Service) Resync ¶ added in v0.3.0
Resync allows a node to start syncing again if it has fallen behind the current network head.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.