2019-08-13 21:12:00 +00:00
|
|
|
package p2p
|
|
|
|
|
|
|
|
// Config for the p2p service. These parameters are set from application level flags
|
|
|
|
// to initialize the p2p service.
|
|
|
|
type Config struct {
|
2019-09-23 17:24:16 +00:00
|
|
|
NoDiscovery bool
|
|
|
|
StaticPeers []string
|
|
|
|
BootstrapNodeAddr []string
|
|
|
|
KademliaBootStrapAddr []string
|
|
|
|
Discv5BootStrapAddr []string
|
|
|
|
RelayNodeAddr string
|
2020-01-23 03:25:10 +00:00
|
|
|
LocalIP string
|
2019-09-23 17:24:16 +00:00
|
|
|
HostAddress string
|
2020-01-22 22:07:22 +00:00
|
|
|
HostDNS string
|
2019-09-23 17:24:16 +00:00
|
|
|
PrivateKey string
|
|
|
|
DataDir string
|
|
|
|
TCPPort uint
|
|
|
|
UDPPort uint
|
|
|
|
MaxPeers uint
|
|
|
|
WhitelistCIDR string
|
|
|
|
EnableUPnP bool
|
2020-03-23 14:41:47 +00:00
|
|
|
EnableDiscv5 bool
|
2019-09-23 17:24:16 +00:00
|
|
|
Encoding string
|
2019-08-13 21:12:00 +00:00
|
|
|
}
|