diff --git a/config/config.go b/config/config.go index 9af0cf68f19..5f6be8e5ac5 100644 --- a/config/config.go +++ b/config/config.go @@ -27,6 +27,7 @@ type Config struct { Swarm SwarmConfig AutoNAT AutoNATConfig Pubsub PubsubConfig + Peering Peering Provider Provider Reprovider Reprovider diff --git a/config/peering.go b/config/peering.go new file mode 100644 index 00000000000..242ce2d9898 --- /dev/null +++ b/config/peering.go @@ -0,0 +1,9 @@ +package config + +import "github.com/libp2p/go-libp2p-core/peer" + +// Peering configures the peering service. +type Peering struct { + // Peers lists the nodes to attempt to stay connected with. + Peers []peer.AddrInfo +}