1
0

ln: begin handling htlc failures

This commit is contained in:
Janus
2018-06-18 19:46:25 +02:00
committed by ThomasV
parent 6d8cae11dd
commit e9fec66eb4
4 changed files with 59 additions and 4 deletions

View File

@@ -394,3 +394,8 @@ class HTLCStateMachine(PrintError):
assert htlc.payment_hash == sha256(preimage)
assert len([x.htlc_id == htlc_index for x in self.local_update_log]) == 1
self.remote_update_log.append(SettleHtlc(htlc_index))
def fail_htlc(self, htlc):
# TODO
self.local_update_log = []
self.remote_update_log = []