From 88c6c8d4e5890e9c12dd94e3129cb1326f537894 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Thu, 12 Oct 2023 00:43:49 +0200 Subject: [PATCH] cmd/tapcli: allow using tapcli on mainnet --- cmd/tapcli/main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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",