[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-03-02 18:43:21 +00:00
parent f51bf70d5d
commit 68de726363
4 changed files with 1 additions and 4 deletions

View file

@ -184,7 +184,6 @@ def lnencode(addr, privkey):
tags_set = set()
for k, v in addr.tags:
# BOLT #11:
#
# A writer MUST NOT include more than one `d`, `h`, `n` or `x` fields,

View file

@ -2,7 +2,7 @@ def amount_split(amount):
"""Given an amount returns a list of amounts returned e.g. 13 is [1, 4, 8]."""
bits_amt = bin(amount)[::-1][:-2]
rv = []
for (pos, bit) in enumerate(bits_amt):
for pos, bit in enumerate(bits_amt):
if bit == "1":
rv.append(2**pos)
return rv

View file

@ -105,7 +105,6 @@ class LNbitsWallet(Wallet):
async def get_invoice_status(self, checking_id: str) -> PaymentStatus:
try:
r = self.s.get(
url=f"{self.endpoint}/api/v1/payments/{checking_id}",
headers=self.key,

View file

@ -138,7 +138,6 @@ async def store_p2sh(db: Database, p2sh: P2SHScript):
async def get_unused_locks(db: Database, address: str = None):
clause: List[str] = []
values: dict[str, Any] = {}