From e0d44a650ec340c1cfc9e2c640131dbe53218023 Mon Sep 17 00:00:00 2001 From: Sam Kleinman Date: Thu, 17 Feb 2022 08:56:55 -0500 Subject: [PATCH] node: clarify unneccessary logic in seed constructor (#7818) --- node/setup.go | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/node/setup.go b/node/setup.go index 68371c45a..f88c4b9fc 100644 --- a/node/setup.go +++ b/node/setup.go @@ -484,21 +484,19 @@ func makeSeedNodeInfo( Block: state.Version.Consensus.Block, App: state.Version.Consensus.App, }, - NodeID: nodeKey.ID, - Network: genDoc.ChainID, - Version: version.TMVersion, - Channels: []byte{}, - Moniker: cfg.Moniker, + NodeID: nodeKey.ID, + Network: genDoc.ChainID, + Version: version.TMVersion, + Channels: []byte{ + pex.PexChannel, + }, + Moniker: cfg.Moniker, Other: types.NodeInfoOther{ TxIndex: "off", RPCAddress: cfg.RPC.ListenAddress, }, } - if cfg.P2P.PexReactor { - nodeInfo.Channels = append(nodeInfo.Channels, pex.PexChannel) - } - nodeInfo.ListenAddr = cfg.P2P.ExternalAddress if nodeInfo.ListenAddr == "" { nodeInfo.ListenAddr = cfg.P2P.ListenAddress