Drop pending outbound messages on peer disconnection
authorMatt Corallo <git@bluematt.me>
Tue, 8 Jan 2019 04:11:37 +0000 (23:11 -0500)
committerMatt Corallo <git@bluematt.me>
Thu, 24 Jan 2019 18:16:59 +0000 (13:16 -0500)
commit1bc190c760e644b08436214c49808fa92bfdb4dc
tree1ca63c464c6e4de49d8e6b2ff0838541e68695ca
parenta138a9af010d5c6e80caaae56a3116051f3df653
Drop pending outbound messages on peer disconnection

This shouldn't be required, but it may help prevent some downstream
race conditions due to clients not sending message events quickly
enough and trying to send stale messages before new
channel_reestablish messages.
src/ln/channelmanager.rs