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
|
2020-04-03 05:09:15 +00:00
|
|
|
EnableUPnP bool
|
|
|
|
EnableDiscv5 bool
|
2019-09-23 17:24:16 +00:00
|
|
|
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
|
|
|
|
Encoding string
|
2019-08-13 21:12:00 +00:00
|
|
|
}
|