Skip to content

Commit

Permalink
Add IPC Path Flag to sharding client
Browse files Browse the repository at this point in the history
  • Loading branch information
nisdas committed Feb 7, 2018
1 parent 5b27607 commit 1440784
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/geth/shardingcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions sharding/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1440784

Please sign in to comment.