SatSale

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

commit 971a59de9cc91fed412c6438f9906bd6d2b6c244
parent 5ea81d86ab73772e1480f881c44bd4a35d48fdc0
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Wed, 17 Mar 2021 20:10:04 +1100

Add local certs usage

Diffstat:
Mpay/lnd.py | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/pay/lnd.py b/pay/lnd.py @@ -88,6 +88,9 @@ class lnd(invoice): ".", ] ) + + self.certs = {'tls' : 'tls.cert', 'macaroon' : 'admin.macaroon'} + else: subprocess.run( ["ln", "-s", "{}".format(tls_file), "."], @@ -98,6 +101,8 @@ class lnd(invoice): cwd=pathlib.Path.home() ) + self.certs = {'tls' : tls_file, 'macaroon' : macaroon_file} + except Exception as e: print(e) print("Failed to copy tls and macaroon files to local machine.")