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