1
0

ln: improve lnhtlc, passes test

This commit is contained in:
Janus
2018-06-25 21:06:50 +02:00
committed by ThomasV
parent 56d5936661
commit e7089c1458
3 changed files with 56 additions and 42 deletions

View File

@@ -1267,7 +1267,7 @@ class Peer(PrintError):
self.print_error("commitment_signed", payload)
channel_id = payload['channel_id']
chan = self.channels[channel_id]
self.save_channel(chan._replace(local_state=chan.local_state._replace(current_commitment_signature=payload['signature'])))
self.lnworker.save_channel(chan._replace(local_state=chan.local_state._replace(current_commitment_signature=payload['signature'])))
self.commitment_signed[channel_id].put_nowait(payload)
def on_update_fulfill_htlc(self, payload):