Skip to content

Commit

Permalink
Merge pull request ethereum#19 from nisdas/IPCPath
Browse files Browse the repository at this point in the history
Add IPC Path Flag to sharding client
  • Loading branch information
prestonvanloon authored Feb 8, 2018
2 parents d0c5585 + 1440784 commit 7afef58
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 7afef58

Please sign in to comment.