tweaked create_invoice

This commit is contained in:
benarc
2021-11-03 11:02:33 +00:00
parent abff990ec3
commit 52455e14cd
2 changed files with 5 additions and 5 deletions
+5 -4
View File
@@ -50,11 +50,12 @@ async def create_invoice(
webhook: Optional[str] = None,
conn: Optional[Connection] = None,
) -> Tuple[str, str]:
invoice_memo = None if description_hash else memo
storeable_memo = memo or "LN payment"
if not memo:
memo = "LN payment"
# invoice_memo = None if description_hash else memo
# storeable_memo = memo
ok, checking_id, payment_request, error_message = await WALLET.create_invoice(
amount=amount, memo=invoice_memo, description_hash=description_hash
amount=amount, memo=memo, description_hash=description_hash
)
if not ok:
raise InvoiceFailure(error_message or "Unexpected backend error.")