aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/ethereum
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-02-03 03:04:00 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-02-03 03:04:00 +0800
commit1f4ed49b4c3400c8f567a29c70d4fb26df97f305 (patch)
treef16968a25055aeaee6c4a3abed731f40415f3884 /cmd/ethereum
parent57c6caf146a815f29b0698b8f67c827a254d7836 (diff)
downloadgo-tangerine-1f4ed49b4c3400c8f567a29c70d4fb26df97f305.tar.gz
go-tangerine-1f4ed49b4c3400c8f567a29c70d4fb26df97f305.tar.zst
go-tangerine-1f4ed49b4c3400c8f567a29c70d4fb26df97f305.zip
Move hardcoded seed node address to app flag
Replaces functionality `-seed=true` with `-seed="ip:port"`
Diffstat (limited to 'cmd/ethereum')
-rw-r--r--cmd/ethereum/flags.go4
-rw-r--r--cmd/ethereum/main.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/cmd/ethereum/flags.go b/cmd/ethereum/flags.go
index e0fbbb008..9a0b00922 100644
--- a/cmd/ethereum/flags.go
+++ b/cmd/ethereum/flags.go
@@ -49,7 +49,7 @@ var (
AddPeer string
MaxPeer int
GenAddr bool
- UseSeed bool
+ SeedNode string
SecretFile string
ExportDir string
NonInteractive bool
@@ -101,7 +101,7 @@ func Init() {
flag.BoolVar(&StartRpc, "rpc", false, "start rpc server")
flag.BoolVar(&StartWebSockets, "ws", false, "start websocket server")
flag.BoolVar(&NonInteractive, "y", false, "non-interactive mode (say yes to confirmations)")
- flag.BoolVar(&UseSeed, "seed", true, "seed peers")
+ flag.StringVar(&SeedNode, "seednode", "poc-8.ethdev.com:30303", "ip:port of seed node to connect to. Set to blank for skip")
flag.BoolVar(&SHH, "shh", true, "whisper protocol (on)")
flag.BoolVar(&Dial, "dial", true, "dial out connections (on)")
flag.BoolVar(&GenAddr, "genaddr", false, "create a new priv/pub key")
diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go
index 288040ee7..4b16fb79f 100644
--- a/cmd/ethereum/main.go
+++ b/cmd/ethereum/main.go
@@ -134,7 +134,7 @@ func main() {
utils.StartWebSockets(ethereum, WsPort)
}
- utils.StartEthereum(ethereum, UseSeed)
+ utils.StartEthereum(ethereum, SeedNode)
if StartJsConsole {
InitJsConsole(ethereum)