Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // StatePath defines a flag to start the beacon chain from a give genesis state file. StatePath = &cli.PathFlag{ Name: "checkpoint-state", Usage: "Rather than syncing from genesis, you can start processing from a ssz-serialized BeaconState+Block." + " This flag allows you to specify a local file containing the checkpoint BeaconState to load.", } // BlockPath is required when using StatePath to also provide the latest integrated block. BlockPath = &cli.PathFlag{ Name: "checkpoint-block", Usage: "Rather than syncing from genesis, you can start processing from a ssz-serialized BeaconState+Block." + " This flag allows you to specify a local file containing the checkpoint Block to load.", } RemoteURL = &cli.StringFlag{ Name: "checkpoint-sync-url", Usage: "URL of a synced beacon node to trust in obtaining checkpoint sync data. " + "As an additional safety measure, it is strongly recommended to only use this option in conjunction with " + "--weak-subjectivity-checkpoint flag", } )
Functions ¶
func BeaconNodeOptions ¶
BeaconNodeOptions is responsible for determining if the checkpoint sync options have been used, and if so, reading the block and state ssz-serialized values from the filesystem locations specified and preparing a checkpoint.Initializer, which uses the provided io.ReadClosers to initialize the beacon node database.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.