SatSale

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

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

Add local certs usage

Diffstat:
Mpay/lnd.py | 13++-----------
1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/pay/lnd.py b/pay/lnd.py @@ -34,8 +34,8 @@ class lnd(invoice): time.sleep(3) self.lnd = LNDClient( "{}:{}".format(config.host, config.lnd_rpcport), - macaroon_filepath="admin.macaroon", - cert_filepath="tls.cert", + macaroon_filepath=self.certs['macaroon'], + cert_filepath=self.certs['tls'], ) if test: @@ -92,15 +92,6 @@ class lnd(invoice): self.certs = {'tls' : 'tls.cert', 'macaroon' : 'admin.macaroon'} else: - subprocess.run( - ["ln", "-s", "{}".format(tls_file), "."], - cwd=pathlib.Path.home() - ) - subprocess.run( - ["ln", "-s", "{}".format(macaroon_file), "."], - cwd=pathlib.Path.home() - ) - self.certs = {'tls' : tls_file, 'macaroon' : macaroon_file} except Exception as e: