Commit 080699f7 authored by zelig's avatar zelig

cmd/swarm: ethapi not required

parent 8e35f549
...@@ -254,13 +254,11 @@ func registerBzzService(ctx *cli.Context, stack *node.Node) { ...@@ -254,13 +254,11 @@ func registerBzzService(ctx *cli.Context, stack *node.Node) {
boot := func(ctx *node.ServiceContext) (node.Service, error) { boot := func(ctx *node.ServiceContext) (node.Service, error) {
var client *ethclient.Client var client *ethclient.Client
if ethapi == "" { if len(ethapi) > 0 {
err = fmt.Errorf("use ethapi flag to connect to a an eth client and talk to the blockchain")
} else {
client, err = ethclient.Dial(ethapi) client, err = ethclient.Dial(ethapi)
} if err != nil {
if err != nil { utils.Fatalf("Can't connect: %v", err)
utils.Fatalf("Can't connect: %v", err) }
} }
return swarm.NewSwarm(ctx, client, bzzconfig, swapEnabled, syncEnabled) return swarm.NewSwarm(ctx, client, bzzconfig, swapEnabled, syncEnabled)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment