diff options
author | Felix Lange <fjl@twurst.com> | 2015-02-07 07:38:36 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-02-07 07:52:49 +0800 |
commit | 028775a0863946c1e9ad51fe7b22faa5c59b2605 (patch) | |
tree | bc3962f1ad12e421cd8f67291af7a571d364b1c4 /cmd/ethereum | |
parent | 2cf4fed11b01bb99e08b838f7df2b9396f42f758 (diff) | |
download | go-tangerine-028775a0863946c1e9ad51fe7b22faa5c59b2605.tar.gz go-tangerine-028775a0863946c1e9ad51fe7b22faa5c59b2605.tar.zst go-tangerine-028775a0863946c1e9ad51fe7b22faa5c59b2605.zip |
cmd/ethereum, cmd/mist: add flag for discovery bootstrap nodes
Diffstat (limited to 'cmd/ethereum')
-rw-r--r-- | cmd/ethereum/flags.go | 4 | ||||
-rw-r--r-- | cmd/ethereum/main.go | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/cmd/ethereum/flags.go b/cmd/ethereum/flags.go index af57c6a67..87fdd2838 100644 --- a/cmd/ethereum/flags.go +++ b/cmd/ethereum/flags.go @@ -49,7 +49,7 @@ var ( AddPeer string MaxPeer int GenAddr bool - SeedNode string + BootNodes 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.StringVar(&SeedNode, "seednode", "poc-8.ethdev.com:30303", "ip:port of seed node to connect to. Set to blank for skip") + flag.StringVar(&BootNodes, "bootnodes", "", "space-separated node URLs for discovery bootstrap") 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 faac0bc5d..14e67fe4a 100644 --- a/cmd/ethereum/main.go +++ b/cmd/ethereum/main.go @@ -74,6 +74,7 @@ func main() { KeyRing: KeyRing, Shh: SHH, Dial: Dial, + BootNodes: BootNodes, }) if err != nil { @@ -133,7 +134,7 @@ func main() { utils.StartWebSockets(ethereum, WsPort) } - utils.StartEthereum(ethereum, SeedNode) + utils.StartEthereum(ethereum) if StartJsConsole { InitJsConsole(ethereum) |