Skip to content

Commit

Permalink
cmd/tapcli: allow using tapcli on mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed Oct 11, 2023
1 parent 68b5b9a commit 88c6c8d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmd/tapcli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func extractPathArgs(ctx *cli.Context) (string, string, error) {
// determine the correct path to the macaroon when not specified.
network := strings.ToLower(ctx.GlobalString("network"))
switch network {
case "testnet", "regtest", "simnet", "signet":
case "mainnet", "testnet", "regtest", "simnet", "signet":
default:
return "", "", fmt.Errorf("unknown network: %v", network)
}
Expand All @@ -234,7 +234,9 @@ func extractPathArgs(ctx *cli.Context) (string, string, error) {
// target the specified file.
var macPath string
if ctx.GlobalString("macaroonpath") != "" {
macPath = lncfg.CleanAndExpandPath(ctx.GlobalString("macaroonpath"))
macPath = lncfg.CleanAndExpandPath(ctx.GlobalString(
"macaroonpath",
))
} else {
// Otherwise, we'll go into the path:
// tapddir/data/<network> in order to fetch the
Expand Down Expand Up @@ -291,7 +293,7 @@ func main() {
Name: "network, n",
Usage: "The network tapd is running on, e.g. " +
"mainnet, testnet, etc.",
Value: "testnet",
Value: "mainnet",
},
cli.BoolFlag{
Name: "no-macaroons",
Expand Down

0 comments on commit 88c6c8d

Please sign in to comment.