]> git.bitcoin.ninja Git - rust-lightning/commit
Log when a channel is closed on startup due to stale ChannelManager
authorMatt Corallo <git@bluematt.me>
Sun, 1 Aug 2021 02:13:36 +0000 (02:13 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 5 Aug 2021 20:24:21 +0000 (20:24 +0000)
commitcab2ca8eeb6e8e4e75ad9227f440900ba9a787cb
tree132eb34e7fbfeacd11391a4245bba4c5bcc59f4e
parentbee9a1e4030e04a91a2d774784a2e2fc545ae797
Log when a channel is closed on startup due to stale ChannelManager

This is one of the riskiest parts of our API from the perspective
of accidental force-closes - if users delay persisting the
ChannelManager much at all after a ChannelMonitor we may hit a
force-close after restart.

The fact that we don't log at all when this happens is criminal.
lightning/src/ln/channelmanager.rs