From 7122e704b838d4989722e6b9b4e09f914a829b77 Mon Sep 17 00:00:00 2001 From: Asara Date: Wed, 3 May 2023 22:25:41 -0400 Subject: [PATCH] Proper formatting for rhash --- lnd/lnd.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lnd/lnd.go b/lnd/lnd.go index 167b95d..9a31a1d 100644 --- a/lnd/lnd.go +++ b/lnd/lnd.go @@ -3,6 +3,7 @@ package lnd import ( "context" b64 "encoding/base64" + "encoding/hex" "errors" "fmt" "strconv" @@ -36,13 +37,14 @@ func Request(rKey string, request []byte) (string, error) { } info, err := lndCli.AddInvoice(ctx, &lnrpc.Invoice{ Memo: fmt.Sprintf("nostr addr %s", rKey), - Expiry: 15 * 60, + Expiry: 1 * 60, Value: addrFee, }) if err != nil { l.Fatal().Msg("unable to create lnd invoice") } - spew.Dump(info) + spew.Dump(hex.EncodeToString(info.RHash)) + spew.Dump(info.PaymentRequest) spew.Dump(request) return "x", nil }