SatSale

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

commit e4dd1ab22b8b9006194825b202df9f2e2061cecf
parent e580bdadb0d80ffef0cc59c611ee23e81b3b7670
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Wed, 17 Mar 2021 20:23:54 +1100

Add local certs usage

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

diff --git a/pay/lnd.py b/pay/lnd.py @@ -64,6 +64,8 @@ class lnd(invoice): # Copy tls and macaroon certs from remote machine. def copy_certs(self): + self.certs = {'tls' : 'tls.cert', 'macaroon' : 'admin.macaroon'} + if (not os.path.isfile("tls.cert")) or (not os.path.isfile("admin.macaroon")): try: tls_file = os.path.join(config.lnd_dir, "tls.cert") @@ -90,8 +92,6 @@ class lnd(invoice): ] ) - self.certs = {'tls' : 'tls.cert', 'macaroon' : 'admin.macaroon'} - else: self.certs = {'tls' : os.path.expanduser(tls_file), 'macaroon' : os.path.expanduser(macaroon_file)}