prysm-pulse/beacon-chain/p2p/config.go
Nishant Das b5b10a8d35 Add Back Kademlia DHT to Prysm (#3557)
* serve nodes

* remove testing flag

* add back bootnode

* add dht

* add back dht

* gaz

* fix build

* bootnode works in runtime

* fix all references

* all tests pass

* remove feature flag

* separate out ports

* lint

* fix docker build

* use one error package
2019-09-23 10:24:16 -07:00

22 lines
603 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
HostAddress string
PrivateKey string
DataDir string
TCPPort uint
UDPPort uint
MaxPeers uint
WhitelistCIDR string
EnableUPnP bool
Encoding string
}