mirror of
https://github.com/tendermint/tendermint.git
synced 2026-04-17 14:11:08 +00:00
pex: avoid starting reactor twice (#7239)
This commit is contained in:
@@ -683,9 +683,7 @@ func (n *nodeImpl) OnStart() error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not dial peers from persistent-peers field: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
if n.config.P2P.PexReactor {
|
||||
} else if n.config.P2P.PexReactor {
|
||||
if err := n.pexReactor.Start(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user