Make HTLCOutputInCommitment::transaction_output_index an Option
authorMatt Corallo <git@bluematt.me>
Sun, 6 Jan 2019 22:02:53 +0000 (17:02 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 11 Jan 2019 21:03:40 +0000 (16:03 -0500)
commit09919d2af0bb16a8cc63a50c08c4a02aae95f5be
tree0dba358cb6b90f24475dd2debaec5a2f146db517
parenta604cb676368c3fce8f8e0b31bf40d06dd4682b1
Make HTLCOutputInCommitment::transaction_output_index an Option

We really shouldn't have split out the with-source HTLCs from the
in-transaction HTLCs when we added back-failing, and will need
almost all of the info in HTLCOutputInCommitment for each HTLC to
fix would_broadcast_at_height, so this is a first step at
recombining them.
src/ln/chan_utils.rs
src/ln/channel.rs
src/ln/channelmonitor.rs