Move hardcoded seed node address to app flag

Replaces functionality `-seed=true` with `-seed="ip:port"`
This commit is contained in:
Taylor Gerring
2015-02-02 13:04:00 -06:00
parent 57c6caf146
commit 1f4ed49b4c
7 changed files with 13 additions and 17 deletions

View File

@ -121,9 +121,9 @@ func exit(err error) {
os.Exit(status)
}
func StartEthereum(ethereum *eth.Ethereum, UseSeed bool) {
func StartEthereum(ethereum *eth.Ethereum, SeedNode string) {
clilogger.Infof("Starting %s", ethereum.ClientIdentity())
err := ethereum.Start(UseSeed)
err := ethereum.Start(SeedNode)
if err != nil {
exit(err)
}