diff --git a/cmd/tapcli/main.go b/cmd/tapcli/main.go index b7b7e7d21..d625ebf07 100644 --- a/cmd/tapcli/main.go +++ b/cmd/tapcli/main.go @@ -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) } @@ -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/ in order to fetch the @@ -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",