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

Merge branch 'master' into tor-support

* master:
  Provide LNURL metadata hash as description_hash in the lightning pr
  Update .lndonate
  Update .lndonate
  Create .lndonate
  Update README.md
  Update README.md
  Update README.md
This commit is contained in:
2021-09-03 13:37:48 +02:00
4 changed files with 15 additions and 13 deletions

View File

@@ -46,13 +46,14 @@ type LNDclient struct {
}
// AddInvoice generates an invoice with the given price and memo.
func (c LNDclient) AddInvoice(value int64, memo string) (Invoice, error) {
func (c LNDclient) AddInvoice(value 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 value=%v", memo, value)
invoice := lnrpc.Invoice{
Memo: memo,
Value: value,
Memo: memo,
DescriptionHash: descriptionHash,
Value: value,
}
res, err := c.lndClient.AddInvoice(c.ctx, &invoice)
if err != nil {