aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist
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/mist
parent57c6caf146a815f29b0698b8f67c827a254d7836 (diff)
downloaddexon-1f4ed49b4c3400c8f567a29c70d4fb26df97f305.tar.gz
dexon-1f4ed49b4c3400c8f567a29c70d4fb26df97f305.tar.zst
dexon-1f4ed49b4c3400c8f567a29c70d4fb26df97f305.zip
Move hardcoded seed node address to app flag
Replaces functionality `-seed=true` with `-seed="ip:port"`
Diffstat (limited to 'cmd/mist')
-rw-r--r--cmd/mist/flags.go4
-rw-r--r--cmd/mist/main.go2
-rw-r--r--cmd/mist/ui_lib.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/cmd/mist/flags.go b/cmd/mist/flags.go
index 9dc3ae10a..05881a494 100644
--- a/cmd/mist/flags.go
+++ b/cmd/mist/flags.go
@@ -51,7 +51,7 @@ var (
AddPeer string
MaxPeer int
GenAddr bool
- UseSeed bool
+ SeedNode string
SecretFile string
ExportDir string
NonInteractive bool
@@ -116,7 +116,7 @@ func Init() {
flag.BoolVar(&StartRpc, "rpc", true, "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(&GenAddr, "genaddr", false, "create a new priv/pub key")
flag.StringVar(&NatType, "nat", "", "NAT support (UPNP|PMP) (none)")
flag.StringVar(&SecretFile, "import", "", "imports the file given (hex or mnemonic formats)")
diff --git a/cmd/mist/main.go b/cmd/mist/main.go
index a66288a3e..66872a241 100644
--- a/cmd/mist/main.go
+++ b/cmd/mist/main.go
@@ -84,7 +84,7 @@ func run() error {
utils.RegisterInterrupt(func(os.Signal) {
gui.Stop()
})
- go utils.StartEthereum(ethereum, UseSeed)
+ go utils.StartEthereum(ethereum, SeedNode)
fmt.Println("ETH stack took", time.Since(tstart))
diff --git a/cmd/mist/ui_lib.go b/cmd/mist/ui_lib.go
index 5e141bdaf..7c5802076 100644
--- a/cmd/mist/ui_lib.go
+++ b/cmd/mist/ui_lib.go
@@ -136,7 +136,7 @@ func (ui *UiLib) Muted(content string) {
func (ui *UiLib) Connect(button qml.Object) {
if !ui.connected {
- ui.eth.Start(true)
+ ui.eth.Start(SeedNode)
ui.connected = true
button.Set("enabled", false)
}