mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
cmd/bzzd: ethapi param not mandatory. Warning if no blockchain
This commit is contained in:
parent
b448e70c00
commit
62279e46f4
1 changed files with 5 additions and 1 deletions
|
|
@ -176,7 +176,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) {
|
||||||
client, err := ethclient.Dial(ethapi)
|
if ethapi == "" {
|
||||||
|
err = fmt.Errorf("use ethapi flag to connect to a an eth client and talk to the blockchain")
|
||||||
|
} else {
|
||||||
|
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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue