1
0

reintroduce separate request types for lightning and onchain

cmdline: add_request has a --lightning option
This commit is contained in:
ThomasV
2025-02-23 12:21:41 +01:00
parent 30901212d0
commit 3d2531cb93
13 changed files with 109 additions and 208 deletions

View File

@@ -344,8 +344,9 @@ class Request(BaseInvoice):
) -> Optional[str]:
addr = self.get_address()
amount = self.get_amount_sat()
if amount is not None:
amount = int(amount)
if amount is None:
return
amount = int(amount)
message = self.message
extra = {}
if self.time and self.exp: