mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-17 07:01:20 +00:00
node: remove dup code from rebase
This commit is contained in:
@ -6,7 +6,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
|
||||||
|
|
||||||
abci "github.com/tendermint/abci/types"
|
abci "github.com/tendermint/abci/types"
|
||||||
amino "github.com/tendermint/go-amino"
|
amino "github.com/tendermint/go-amino"
|
||||||
@ -280,14 +279,6 @@ func NewNode(config *cfg.Config,
|
|||||||
addrBook = pex.NewAddrBook(config.P2P.AddrBookFile(), config.P2P.AddrBookStrict)
|
addrBook = pex.NewAddrBook(config.P2P.AddrBookFile(), config.P2P.AddrBookStrict)
|
||||||
addrBook.SetLogger(p2pLogger.With("book", config.P2P.AddrBookFile()))
|
addrBook.SetLogger(p2pLogger.With("book", config.P2P.AddrBookFile()))
|
||||||
|
|
||||||
var seeds []string
|
|
||||||
if config.P2P.Seeds != "" {
|
|
||||||
seeds = strings.Split(config.P2P.Seeds, ",")
|
|
||||||
}
|
|
||||||
var privatePeerIDs []string
|
|
||||||
if config.P2P.PrivatePeerIDs != "" {
|
|
||||||
privatePeerIDs = strings.Split(config.P2P.PrivatePeerIDs, ",")
|
|
||||||
}
|
|
||||||
// TODO persistent peers ? so we can have their DNS addrs saved
|
// TODO persistent peers ? so we can have their DNS addrs saved
|
||||||
pexReactor := pex.NewPEXReactor(addrBook,
|
pexReactor := pex.NewPEXReactor(addrBook,
|
||||||
&pex.PEXReactorConfig{
|
&pex.PEXReactorConfig{
|
||||||
|
Reference in New Issue
Block a user