mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
d17996f8b0
* Update V3 from V4 * Fix build v3 -> v4 * Update ssz * Update beacon_chain.pb.go * Fix formatter import * Update update-mockgen.sh comment to v4 * Fix conflicts. Pass build and tests * Fix test
31 lines
851 B
Go
31 lines
851 B
Go
package p2p
|
|
|
|
import (
|
|
statefeed "github.com/prysmaticlabs/prysm/v4/beacon-chain/core/feed/state"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/db"
|
|
)
|
|
|
|
// Config for the p2p service. These parameters are set from application level flags
|
|
// to initialize the p2p service.
|
|
type Config struct {
|
|
NoDiscovery bool
|
|
EnableUPnP bool
|
|
StaticPeers []string
|
|
BootstrapNodeAddr []string
|
|
Discv5BootStrapAddr []string
|
|
RelayNodeAddr string
|
|
LocalIP string
|
|
HostAddress string
|
|
HostDNS string
|
|
PrivateKey string
|
|
DataDir string
|
|
MetaDataDir string
|
|
TCPPort uint
|
|
UDPPort uint
|
|
MaxPeers uint
|
|
AllowListCIDR string
|
|
DenyListCIDR []string
|
|
StateNotifier statefeed.Notifier
|
|
DB db.ReadOnlyDatabase
|
|
}
|