SatSale

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

commit 0f6b4dbcc04668ba3e0e6f7a833bfa12cb812663
parent 0d4da49f20d8004bfb615b53da3d285e08725156
Author: Nick <nick@nickfarrow.com>
Date:   Fri,  7 Oct 2022 17:18:29 +1100

Merge pull request #103 from kristapsk/fix-linter-errors

Fix flake8 linter errors
Diffstat:
Mconfig.py | 2+-
Mnode/lnd.py | 4++--
Mtest/test_xpub.py | 2+-
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/config.py b/config.py @@ -92,7 +92,7 @@ if base_currency not in supported_currencies: raise Exception("base_currency must be one of supported_currencies") currency_provider = get_opt("currency_provider", "COINGECKO") -if currency_provider not in ["COINDESK","COINGECKO"]: +if currency_provider not in ["COINDESK", "COINGECKO"]: raise Exception("Unsupported currency price feed provider: {}".format( currency_provider)) diff --git a/node/lnd.py b/node/lnd.py @@ -135,8 +135,8 @@ class lnd: return lnd_invoice["paymentRequest"], lnd_invoice["rHash"] def get_address(self, amount, label, expiry): - address, r_hash = self.create_lnd_invoice(amount, - memo=label, expiry=expiry) + address, r_hash = self.create_lnd_invoice( + amount, memo=label, expiry=expiry) return address, r_hash def pay_invoice(self, invoice): diff --git a/test/test_xpub.py b/test/test_xpub.py @@ -2,7 +2,7 @@ import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), "..")) -from node.xpub import * +from node.xpub import xpub def test_xpub():