Skip to content

Commit afb954c

Browse files
chore: set external-address on p2p config
1 parent 2b382e9 commit afb954c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/cosmoseed/node.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ func NewSeeder(home string, config *Config) (*Seeder, error) {
6464
"max-packet-msg-payload-size", config.MaxPacketMsgPayloadSize,
6565
"dial-workers", config.DialWorkers,
6666
"peer-queue-size", config.PeerQueueSize,
67+
"external-address", config.ExternalAddress,
6768
)
6869

6970
if err := ensurePath(nodeKeyPath); err != nil {
@@ -235,6 +236,7 @@ func generateP2PConfig(home string, cfg *Config) *config.P2PConfig {
235236
p2pConfig.MaxNumInboundPeers = cfg.MaxInboundPeers
236237
p2pConfig.MaxNumOutboundPeers = cfg.MaxOutboundPeers
237238
p2pConfig.MaxPacketMsgPayloadSize = cfg.MaxPacketMsgPayloadSize
239+
p2pConfig.ExternalAddress = cfg.ExternalAddress
238240

239241
return p2pConfig
240242
}

0 commit comments

Comments
 (0)