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)
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.


No differences found