Fix: use our_to_self_delay in check_spend_remote_htlc
authorAntoine Riard <ariard@student.42.fr>
Fri, 19 Jul 2019 21:57:17 +0000 (17:57 -0400)
committerAntoine Riard <ariard@student.42.fr>
Tue, 23 Jul 2019 20:23:34 +0000 (16:23 -0400)
commit3f409a8903d4da42a44ffddadf40c92ec5939d10
tree107f0ef728739bd571198ec30864f41c9b60658f
parentcd8f1de394591c85a635060b861105db9d51716c
Fix: use our_to_self_delay in check_spend_remote_htlc

We were previously using their_to_self_delay to regenerate scripts for
spending remote revoked htlc transactions, and that's a bug.

Their_to_self_delay is delay enforced by peer upon outputs returning
funds back to us.

Our_to_self_delay is delay enforced by us upon outputs returning funds
back to peer.
src/ln/channelmonitor.rs