lightningdevkit / ldk-sample

Sample node implementation using LDK
Apache License 2.0
166 stars 94 forks source link

Detect if the background processor exits early and shutdown if so #109

Closed valentinewallace closed 1 year ago

valentinewallace commented 1 year ago

A user ran into an issue where the BackgroundProcessor silently stopped, leading to ChannelManager persistence falling behind + channel force closures. Now we'll detect if the bg processor exits early and log the result.

Still need to do a bit more reading up on tokio docs to vet the patch but feedback welcome.