mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +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) {
|
||||
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 {
|
||||
utils.Fatalf("Can't connect: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue