1
0

lnworker: fix some type hints re hold_invoices

This commit is contained in:
SomberNight
2023-09-06 19:01:41 +00:00
parent a406f7bba0
commit a560841f3f
3 changed files with 12 additions and 6 deletions

View File

@@ -361,7 +361,7 @@ class SwapManager(Logger):
callback = lambda: self._claim_swap(swap)
self.lnwatcher.add_callback(swap.lockup_address, callback)
async def hold_invoice_callback(self, payment_hash):
async def hold_invoice_callback(self, payment_hash: bytes) -> None:
# note: this assumes the keystore is not encrypted
key = payment_hash.hex()
if key in self.swaps: