1
1
mirror of https://github.com/bumi/lntip synced 2026-02-16 05:57:49 +00:00

Allow configuration of LNURL-pay min/max sendable

This commit is contained in:
yanas
2022-07-22 22:15:42 +02:00
parent a383a747ef
commit 4d4fe33103
3 changed files with 18 additions and 9 deletions

View File

@@ -47,14 +47,14 @@ type LNDclient struct {
}
// AddInvoice generates an invoice with the given price and memo.
func (c LNDclient) AddInvoice(value int64, memo string, descriptionHash []byte) (Invoice, error) {
func (c LNDclient) AddInvoice(msats int64, memo string, descriptionHash []byte) (Invoice, error) {
result := Invoice{}
stdOutLogger.Printf("Adding invoice: memo=%s value=%v", memo, value)
stdOutLogger.Printf("Adding invoice: memo=%s msats=%v", memo, msats)
invoice := lnrpc.Invoice{
Memo: memo,
DescriptionHash: descriptionHash,
Value: value,
ValueMsat: msats,
}
res, err := c.lndClient.AddInvoice(c.ctx, &invoice)
if err != nil {