Do not return UpdateFailHTLC updates until the HTLC is committed
authorMatt Corallo <git@bluematt.me>
Tue, 21 Aug 2018 20:57:41 +0000 (16:57 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 23 Aug 2018 20:11:20 +0000 (16:11 -0400)
commit6e50a84f14c0effd78760e167a4ea9217e17c92a
treec2f0a8e8efc277a1cdb77a63268e438a5aa0f50b
parent0647cf4bf18361e936e94f92e86186929fd72c84
Do not return UpdateFailHTLC updates until the HTLC is committed

This fixes a violation of BOLT 2 and will let us consolidate some
HTLC update handling. Good bit of code movement, but is mostly
refactor to store HTLC failure status in pending_htlcs in Channel.
fuzz/fuzz_targets/channel_target.rs
src/ln/channel.rs
src/ln/channelmanager.rs