1
0

lnchannel: make AbstractChannel inherit ABC

and add some type annotations, clean up method signatures
This commit is contained in:
SomberNight
2020-04-13 15:57:53 +02:00
parent 821431a239
commit 8e8ab775eb
6 changed files with 134 additions and 71 deletions

View File

@@ -432,7 +432,7 @@ class LNWallet(LNWorker):
self.preimages = self.db.get_dict('lightning_preimages') # RHASH -> preimage
self.sweep_address = wallet.get_receiving_address()
self.lock = threading.RLock()
self.logs = defaultdict(list) # (not persisted) type: Dict[str, List[PaymentAttemptLog]] # key is RHASH
self.logs = defaultdict(list) # type: Dict[str, List[PaymentAttemptLog]] # key is RHASH # (not persisted)
self.is_routing = set() # (not persisted) keys of invoices that are in PR_ROUTING state
# used in tests
self.enable_htlc_settle = asyncio.Event()