SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0f85df9e7d6e9a21935fcaea84a67843fe710271
parent 58a55b8ed9fdd1d4b2ba949226d6d854cf058539
Author: nickfarrow <nicholas.w.farrow@gmail.com>
Date:   Tue, 30 Nov 2021 18:10:33 +1100

Fix invoice.macaroon connection test, and use by default

Diffstat:
Mconfig.py | 2+-
Mnode/lnd.py | 11++++++++---
2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/config.py b/config.py @@ -42,7 +42,7 @@ pay_method = "bitcoind" # lnd RPC port and lnd macaroon (uncomment) #lnd_rpcport = "10009" -#lnd_macaroon = "admin.macaroon" +#lnd_macaroon = "invoice.macaroon" # Or clightning #pay_method = "clightning" diff --git a/node/lnd.py b/node/lnd.py @@ -38,9 +38,14 @@ class lnd: cert_filepath=self.certs["tls"], ) - print("Getting lnd info...") - info = self.lnd.get_info() - print(info) + if "invoice" in self.certs["macaroon"]: + print("Testing we can fetch invoices...") + inv, _ = self.create_lnd_invoice(1) + print(inv) + else: + print("Getting lnd info...") + info = self.lnd.get_info() + print(info) print("Successfully contacted lnd.") break