1
0

add/fix some open_channel related type hints

This commit is contained in:
SomberNight
2019-11-23 20:28:46 +01:00
parent 038036f350
commit 557987d4eb
6 changed files with 36 additions and 10 deletions

View File

@@ -212,7 +212,8 @@ class AddressSynchronizer(Logger):
assert tx, tx
assert tx.is_complete()
tx_hash = tx.txid()
# assert tx_hash == tx.txid() # disabled as expensive; test done by Synchronizer.
if tx_hash is None:
raise Exception("cannot add tx without txid to wallet history")
# we need self.transaction_lock but get_tx_height will take self.lock
# so we need to take that too here, to enforce order of locks
with self.lock, self.transaction_lock: