Skip to content

Commit

Permalink
Merge pull request #126 from nicheosala/master
Browse files Browse the repository at this point in the history
Fix lnd.py
  • Loading branch information
nickfarrow committed Dec 5, 2022
2 parents 396ee43 + 704b468 commit 1045d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/lnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, node_config: dict) -> None:

if "invoice" in self.certs["macaroon"]:
logging.info("Testing we can fetch invoices...")
inv, _ = self.create_lnd_invoice(1)
inv, _ = self.create_lnd_invoice(0)
logging.info(inv)
else:
logging.info("Getting lnd info...")
Expand Down Expand Up @@ -119,7 +119,7 @@ def _copy_certs(self) -> None:
return

# Create lightning invoice
def _create_lnd_invoice(self, btc_amount: float, memo: str = None,
def create_lnd_invoice(self, btc_amount: float, memo: str = None,
description_hash: str = None,
expiry: int = 3600) -> Tuple[str, str]:
# Multiplying by 10^8 to convert to satoshi units
Expand Down

0 comments on commit 1045d7c

Please sign in to comment.