From 4b60be65ee69c65fb52ce825d797deb8655bec40 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 22 Jan 2020 17:03:46 -0800 Subject: [PATCH] challenger: rename macaroon name --- challenger.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/challenger.go b/challenger.go index d96900c..6587c14 100644 --- a/challenger.go +++ b/challenger.go @@ -26,9 +26,9 @@ type LndChallenger struct { var _ mint.Challenger = (*LndChallenger)(nil) const ( - // readOnlyMacaroonName is the name of the read-only macaroon belonging + // invoiceMacaroonName is the name of the read-only macaroon belonging // to the target lnd node. - readOnlyMacaroonName = "invoice.macaroon" + invoiceMacaroonName = "invoice.macaroon" ) // NewLndChallenger creates a new challenger that uses the given connection @@ -42,7 +42,7 @@ func NewLndChallenger(cfg *authConfig, genInvoiceReq InvoiceRequestGenerator) ( client, err := lndclient.NewBasicClient( cfg.LndHost, cfg.TLSPath, cfg.MacDir, cfg.Network, - lndclient.MacFilename(readOnlyMacaroonName), + lndclient.MacFilename(invoiceMacaroonName), ) if err != nil { return nil, err