github.com/amazechain/amc@v0.1.3/internal/p2p/config.go (about) 1 package p2p 2 3 // Config for the p2p service. These parameters are set from application level flags 4 // to initialize the p2p service. 5 //type Config struct { 6 // NoDiscovery bool 7 // EnableUPnP bool 8 // StaticPeerID bool 9 // StaticPeers []string 10 // BootstrapNodeAddr []string 11 // Discv5BootStrapAddr []string 12 // RelayNodeAddr string 13 // LocalIP string 14 // HostAddress string 15 // HostDNS string 16 // PrivateKey string 17 // DataDir string 18 // MetaDataDir string 19 // TCPPort uint 20 // UDPPort uint 21 // MaxPeers uint 22 // AllowListCIDR string 23 // DenyListCIDR []string 24 // //highestBlockSub event.Subscription // Subscription for removed log event 25 // //highestBlockCh chan common.ChainHighestBlock 26 // //DB kv.Getter 27 //}