lightningdevkit / ldk-sample

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

Attempt a last-ditch ChannelManager persistence if the BP exits #114

Closed TheBlueMatt closed 1 year ago

TheBlueMatt commented 1 year ago

If the BP exits because it failed to write our ChannelManager to disk, we'll probably lose some channels on startup. However, there's still some chance for us to write the ChannelManager in a retry, which we should do before we exit.

TheBlueMatt commented 1 year ago

Oops, right.

wpaulino commented 1 year ago

Heh, one more time

-           e,
-           persist_res
+           e, persist_res
TheBlueMatt commented 1 year ago

Ugh, fixed.