diff --git a/cmd/geth/shardingcmd.go b/cmd/geth/shardingcmd.go index 5e49140c88ef..6b9253b8bafe 100644 --- a/cmd/geth/shardingcmd.go +++ b/cmd/geth/shardingcmd.go @@ -14,7 +14,7 @@ var ( Aliases: []string{"shard"}, Usage: "Start a sharding client", ArgsUsage: "[endpoint]", - Flags: []cli.Flag{utils.DataDirFlag, utils.PasswordFileFlag, utils.NetworkIdFlag}, + Flags: []cli.Flag{utils.DataDirFlag, utils.PasswordFileFlag, utils.NetworkIdFlag,utils.IPCPathFlag}, Category: "SHARDING COMMANDS", Description: ` Launches a sharding client that connects to a running geth node and proposes collations to a Validator Manager Contract. This feature is a work in progress. diff --git a/sharding/client.go b/sharding/client.go index 80d85cfaa826..3ad384ea4eec 100644 --- a/sharding/client.go +++ b/sharding/client.go @@ -45,6 +45,9 @@ func MakeShardingClient(ctx *cli.Context) *Client { if endpoint == "" { endpoint = fmt.Sprintf("%s/%s.ipc", path, clientIdentifier) } + if ctx.GlobalIsSet(utils.IPCPathFlag.Name) { + endpoint = ctx.GlobalString(utils.IPCPathFlag.Name) + } config := &node.Config{ DataDir: path,