lightningdevkit / ldk-sample

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

Cleanly shut down PeerManager by disconnecting before we quit #52

Closed TheBlueMatt closed 2 years ago

TheBlueMatt commented 2 years ago

This ensures we don't keep processing peer messages long after we stopped the backgroundprocessor (which results in our ChannelManager on disk being stale compared to monitors).

TheBlueMatt commented 2 years ago

Threw in a fix for balance printing...which caused me to panic thinking I'd lost money.