ln: lnpay: revoke until we get a commitment tx without htlcs
This commit is contained in:
parent
5908961d2e
commit
b813b9c67f
@ -1025,10 +1025,8 @@ class Peer(PrintError):
|
|||||||
update_fulfill_htlc_msg = await self.update_fulfill_htlc[chan.channel_id].get()
|
update_fulfill_htlc_msg = await self.update_fulfill_htlc[chan.channel_id].get()
|
||||||
m.receive_htlc_settle(update_fulfill_htlc_msg["payment_preimage"], int.from_bytes(update_fulfill_htlc_msg["id"], "big"))
|
m.receive_htlc_settle(update_fulfill_htlc_msg["payment_preimage"], int.from_bytes(update_fulfill_htlc_msg["id"], "big"))
|
||||||
|
|
||||||
self.revoke(m)
|
while (await self.commitment_signed[chan.channel_id].get())["htlc_signature"] != b"":
|
||||||
|
self.revoke(m)
|
||||||
while (await self.commitment_signed[chan.channel_id].get())["htlc_signature"] == b"":
|
|
||||||
pass
|
|
||||||
# TODO process above commitment transactions
|
# TODO process above commitment transactions
|
||||||
|
|
||||||
bare_ctx = make_commitment_using_open_channel(m.state, m.state.remote_state.ctn + 1, False, m.state.remote_state.next_per_commitment_point,
|
bare_ctx = make_commitment_using_open_channel(m.state, m.state.remote_state.ctn + 1, False, m.state.remote_state.next_per_commitment_point,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user