Skip to content

Commit

Permalink
- put back some options
Browse files Browse the repository at this point in the history
  • Loading branch information
iulianpascalau committed Jun 14, 2023
1 parent 94ba35e commit c8d7438
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libp2p/netMessenger.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ func constructNode(
options := []libp2p.Option{
libp2p.ListenAddrStrings(addresses...),
libp2p.Identity(p2pPrivateKey),
libp2p.DefaultMuxers,
libp2p.DefaultSecurity,
// we need to disable relay option in order to save the node's bandwidth as much as possible
libp2p.DisableRelay(),
libp2p.NATPortMap(),
}
options = append(options, transportOptions...)

Expand Down

0 comments on commit c8d7438

Please sign in to comment.