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 {
|
|
|
|
NoDiscovery bool
|
|
|
|
StaticPeers []string
|
|
|
|
BootstrapNodeAddr string
|
|
|
|
RelayNodeAddr string
|
|
|
|
HostAddress string
|
|
|
|
PrivateKey string
|
2019-09-16 22:09:16 +00:00
|
|
|
DataDir string
|
2019-09-12 04:52:27 +00:00
|
|
|
TCPPort uint
|
2019-08-21 06:08:30 +00:00
|
|
|
UDPPort uint
|
2019-08-13 21:12:00 +00:00
|
|
|
MaxPeers uint
|
|
|
|
WhitelistCIDR string
|
|
|
|
EnableUPnP bool
|
2019-08-21 16:33:48 +00:00
|
|
|
Encoding string
|
2019-08-13 21:12:00 +00:00
|
|
|
}
|