mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 12:27:18 +00:00
b0128ad894
* bump bitfield dep * add new methods * get it working * add nil check * add check * one more check * add flag * everything works local run * add debug log * more changes * ensuring p2p interface works enough for tests to pass * all tests pass * include proper naming and comments to fix lint * Apply suggestions from code review * discover by peers * cannot figure out why 0 peers * remove keys * fix test * fix it * fix again * remove log * change back * gaz Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
25 lines
691 B
Go
25 lines
691 B
Go
package p2p
|
|
|
|
// Config for the p2p service. These parameters are set from application level flags
|
|
// to initialize the p2p service.
|
|
type Config struct {
|
|
NoDiscovery bool
|
|
StaticPeers []string
|
|
BootstrapNodeAddr []string
|
|
KademliaBootStrapAddr []string
|
|
Discv5BootStrapAddr []string
|
|
RelayNodeAddr string
|
|
LocalIP string
|
|
HostAddress string
|
|
HostDNS string
|
|
PrivateKey string
|
|
DataDir string
|
|
TCPPort uint
|
|
UDPPort uint
|
|
MaxPeers uint
|
|
WhitelistCIDR string
|
|
EnableUPnP bool
|
|
EnableDiscv5 bool
|
|
Encoding string
|
|
}
|