Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeaconApp ¶
type BeaconApp struct {
// contains filtered or unexported fields
}
BeaconApp contains all the high level states and workflow for P2P module
func NewBeaconApp ¶
NewBeaconApp creates a new instance of BeaconApp
func (*BeaconApp) GetHostNode ¶
GetHostNode gets the host node
func (*BeaconApp) WaitForConnections ¶
WaitForConnections waits until beacon app is connected
type Config ¶
type Config struct { RPCAddress string GenesisTime uint64 DataDirectory string InitialValidatorList []beacon.InitialValidatorEntry NetworkConfig *config.Config Resync bool IsIntegrationTest bool InitialSyncConnections int ListeningAddress string MinPeerCountToWait int HeartBeatInterval time.Duration TimeOutInterval time.Duration DiscoveryOptions p2p.DiscoveryOptions MaxPeers int }
Config is the config of an BeaconApp
Click to show internal directories.
Click to hide internal directories.