]> git.bitcoin.ninja Git - rust-lightning/commit
Avoid writing `ChannelManager` when hitting lnd bug 6039 2024-03-no-wake-on-shutdown
authorMatt Corallo <git@bluematt.me>
Thu, 14 Mar 2024 19:47:07 +0000 (19:47 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 14 Mar 2024 20:03:48 +0000 (20:03 +0000)
commit03425e4e4c632be3ed104e74680803f1ed1e8583
treefa0f619d96c58b740b05d8051c466b4fd058262f
parentf5ee8c23a1a52bc51c00eb8a62b0b5226acee80b
Avoid writing `ChannelManager` when hitting lnd bug 6039

When we hit lnd bug 6039, we end up sending error messages to peers
in a loop. This should be fine, but because we used the generic
`PersistenceNotifierGuard::notify_on_drop` lock above the specific
handling, we end up writing `ChannelManager` every time we manage a
round-trip to our peer.

This can add up quite quickly, and isn't actually changing, so we
really need to avoid writing the `ChannelManager` in this case.
lightning/src/ln/channelmanager.rs