Move HTLCFailChannelUpdate handling out-of-band 2018-10-157-merge
authorYuntai Kyong <yuntai.kyong@gmail.com>
Mon, 22 Oct 2018 15:12:44 +0000 (11:12 -0400)
committerMatt Corallo <git@bluematt.me>
Tue, 23 Oct 2018 18:01:21 +0000 (14:01 -0400)
commit920d1458c40f9d57679a17090c9fc090b1001d7b
treea44027de955283ddf1034abe61374649a399bc55
parentdc61c9877378b359b7a074cea8751053d612a83c
Move HTLCFailChannelUpdate handling out-of-band

While this isn't neccessary for message ordering consistency, this
does mean that we won't end up processing an HTLCFailChannelUpdate
from a update_fail_htlc prior to it being fully committed (where if
the peer disconnects/reconnects it could theoretically give us a
different result, eg if their next-hop reconnected to them).
src/ln/channelmanager.rs
src/ln/msgs.rs
src/ln/peer_handler.rs
src/util/events.rs
src/util/test_utils.rs