1
0

fix ln tests

This commit is contained in:
Janus
2018-11-07 18:00:28 +01:00
committed by ThomasV
parent 521fadb8cb
commit 1520338f37
4 changed files with 19 additions and 4 deletions

View File

@@ -149,7 +149,7 @@ class Channel(PrintError):
def __init__(self, state, name = None, payment_completed : Optional[Callable[[HTLCOwner, UpdateAddHtlc, bytes], None]] = None):
self.preimages = {}
if not payment_completed:
payment_completed = lambda x: None
payment_completed = lambda x, y, z: None
self.payment_completed = payment_completed
assert 'local_state' not in state
self.config = {}