Remove remaining uses of HandleError in Channel Err return values
authorMatt Corallo <git@bluematt.me>
Fri, 23 Nov 2018 01:50:13 +0000 (20:50 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 23 Nov 2018 04:57:54 +0000 (23:57 -0500)
commit6032099469d03c785c2330029e1bb16171beef31
tree590d39ba3dbaf94e3605fab2f2808debb7e28608
parentdfbcacfe0ef446234d0d40400fc818908311da7b
Remove remaining uses of HandleError in Channel Err return values

This converts block_connected failures to returning the
ErrorMessage that needs to be sent directly, since it always
results in channel closure and never results in needing to call
force_shutdown. It also converts update_add_htlc and closing_signed
handlers to ChannelError as the rest of the message handlers.
src/ln/channel.rs
src/ln/channelmanager.rs