Move fail_reason into OutboundHTLCState states
authorMatt Corallo <git@bluematt.me>
Sun, 3 Mar 2019 19:02:51 +0000 (14:02 -0500)
committerMatt Corallo <git@bluematt.me>
Sun, 3 Mar 2019 19:23:52 +0000 (14:23 -0500)
commit29ed3e227f70b1bd194505c5f48ec32c48d6f515
tree5ecf709257f7d396581f3fe1d84fa203d9f042c4
parentfef2ebab91a0f5d2f7ce901c258fc4e3358ca5c2
Move fail_reason into OutboundHTLCState states

This should probably have happened when we moved most state into
the state enums themselves, but specifically forcing awareness of
the removed/not removed state would have prevented me from
introducing a bug in the first version of an upcoming reserve-value
patch.
src/ln/channel.rs