lightningdevkit / ldk-sample

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

Stop connecting outbound on shutdown in addition to stopping listen #56

Closed TheBlueMatt closed 2 years ago

TheBlueMatt commented 2 years ago

Now that we persist the network graph on shutdown, there is a nontrivial amount of time spent between when we start shutdown and when we complete. Thus, and to be somewhat more pedantic as a sample implementation, we should really stop making new outbound connections once shutdown starts, and not only focus on new inbound connections.