aboutsummaryrefslogtreecommitdiffstats
path: root/eth/backend.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-02-06 03:09:13 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-02-06 03:09:13 +0800
commit99a1551b20ebb2d8e0a40287e840c56cd55942b1 (patch)
treed4f71aa07b846255fb6a29bb76e10a860ab6b6e5 /eth/backend.go
parentdb7c34a9df19d5a8a3a02a5e3d4cafcffa18dcb8 (diff)
parent1f4ed49b4c3400c8f567a29c70d4fb26df97f305 (diff)
downloaddexon-99a1551b20ebb2d8e0a40287e840c56cd55942b1.tar.gz
dexon-99a1551b20ebb2d8e0a40287e840c56cd55942b1.tar.zst
dexon-99a1551b20ebb2d8e0a40287e840c56cd55942b1.zip
Merge pull request #287 from ethereum/system-testing
Seednode CLI param updates
Diffstat (limited to 'eth/backend.go')
-rw-r--r--eth/backend.go12
1 files changed, 4 insertions, 8 deletions
diff --git a/eth/backend.go b/eth/backend.go
index a8db3ab20..43e757435 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -17,10 +17,6 @@ import (
"github.com/ethereum/go-ethereum/whisper"
)
-const (
- seedNodeAddress = "poc-8.ethdev.com:30303"
-)
-
type Config struct {
Name string
Version string
@@ -223,7 +219,7 @@ func (s *Ethereum) Coinbase() []byte {
}
// Start the ethereum
-func (s *Ethereum) Start(seed bool) error {
+func (s *Ethereum) Start(seedNode string) error {
err := s.net.Start()
if err != nil {
return err
@@ -246,9 +242,9 @@ func (s *Ethereum) Start(seed bool) error {
go s.blockBroadcastLoop()
// TODO: read peers here
- if seed {
- logger.Infof("Connect to seed node %v", seedNodeAddress)
- if err := s.SuggestPeer(seedNodeAddress); err != nil {
+ if len(seedNode) > 0 {
+ logger.Infof("Connect to seed node %v", seedNode)
+ if err := s.SuggestPeer(seedNode); err != nil {
logger.Infoln(err)
}
}