]> git.bitcoin.ninja Git - rust-lightning/commit
Merge HTLC-update events, remove FailHTLC ErrorAction 2018-08-htlc-fail-spec
authorMatt Corallo <git@bluematt.me>
Wed, 22 Aug 2018 16:09:11 +0000 (12:09 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 23 Aug 2018 20:11:20 +0000 (16:11 -0400)
commitab00e4ccffba53f48de147d048ee7107fbb773ca
tree60fda2e9be882e321f5b537a533a032e35614d6e
parent6e50a84f14c0effd78760e167a4ea9217e17c92a
Merge HTLC-update events, remove FailHTLC ErrorAction

UpdateFailHTLC isn't really an error anymore now that its handled
async after channel commitment (as required by BOLT 2), and since
its unused this is free. To resolve the TODO which intended to use
it for HTLC failure when trying to route forwards, we instead opt
to merge all the HTLC update events into one UpdateHTLCs event
which just contains a CommitmentUpdate object.
fuzz/fuzz_targets/channel_target.rs
fuzz/fuzz_targets/full_stack_target.rs
src/ln/channelmanager.rs
src/ln/msgs.rs
src/ln/peer_handler.rs
src/util/events.rs