chore: set userAgent to `go-waku`

This commit is contained in:
Richard Ramos 2022-10-26 08:04:18 -04:00 committed by RichΛrd
parent 1b7dd9fe3f
commit 77df9a2224
1 changed files with 3 additions and 3 deletions

View File

@ -30,8 +30,8 @@ import (
"go.uber.org/zap"
)
// Default clientId
const clientId string = "Go Waku v2 node"
// Default userAgent
const userAgent string = "go-waku"
// Default minRelayPeersToPublish
const defaultMinRelayPeersToPublish = 0
@ -405,7 +405,7 @@ var DefaultLibP2POptions = []libp2p.Option{
libp2p.ChainOptions(
libp2p.Transport(tcp.NewTCPTransport),
libp2p.Transport(quic.NewTransport),
), libp2p.UserAgent(clientId),
), libp2p.UserAgent(userAgent),
libp2p.ChainOptions(
libp2p.Muxer("/yamux/1.0.0", yamux.DefaultTransport),
libp2p.Muxer("/mplex/6.7.0", mplex.DefaultTransport),