Browse Source

node: remove dup code from rebase

pull/1519/head
Ethan Buchman 7 years ago
parent
commit
268055e549
1 changed files with 0 additions and 9 deletions
  1. +0
    -9
      node/node.go

+ 0
- 9
node/node.go View File

@ -6,7 +6,6 @@ import (
"fmt"
"net"
"net/http"
"strings"
abci "github.com/tendermint/abci/types"
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.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
pexReactor := pex.NewPEXReactor(addrBook,
&pex.PEXReactorConfig{


Loading…
Cancel
Save