Browse Source

fix test

pull/1104/head
Ethan Buchman 7 years ago
parent
commit
620c957a44
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      node/node.go

+ 5
- 1
node/node.go View File

@ -251,8 +251,12 @@ func NewNode(config *cfg.Config,
trustMetricStore = trust.NewTrustMetricStore(trustHistoryDB, trust.DefaultConfig())
trustMetricStore.SetLogger(p2pLogger)
var seeds []string
if config.P2P.Seeds != "" {
seeds = strings.Split(config.P2P.Seeds, ",")
}
pexReactor := p2p.NewPEXReactor(addrBook,
&p2p.PEXReactorConfig{Seeds: strings.Split(config.P2P.Seeds, ",")})
&p2p.PEXReactorConfig{Seeds: seeds})
pexReactor.SetLogger(p2pLogger)
sw.AddReactor("PEX", pexReactor)
}


Loading…
Cancel
Save