Simplify + document the ChannelManager Err flow a bit 2018-11-close-locked
authorMatt Corallo <git@bluematt.me>
Fri, 23 Nov 2018 03:45:51 +0000 (22:45 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 23 Nov 2018 04:57:54 +0000 (23:57 -0500)
commit466d0f61cf066fb11f742c622a7dd96ff96410ab
tree1ea472549c3ec2a13949b78ef7ed66c77886412c
parentfe3d706d5b35c7ace87ebc7f529b98b727ffb18f
Simplify + document the ChannelManager Err flow a bit

This removes all the channel-closure stuff from handle_error!() and
MsgHandleErrInternal, making all the Err handling consistent by
closing the channel before releasing the channel_state lock and
then calling handle_error!() outside of the lock.
src/ln/channelmanager.rs