lightningdevkit / ldk-c-bindings

Main LDK C Bindings on which other bindings are built
Other
13 stars 14 forks source link

Fix race in peer connection in C++ demo app #115

Closed TheBlueMatt closed 11 months ago

TheBlueMatt commented 11 months ago

When we disconnect then immediately reconnect from one peer we may still get the second connection through before the disconnection is handled on the other end, causing connection failures. We fix this here by disconnecting on both ends before reconnecting.

TheBlueMatt commented 11 months ago

Now added a simple wrapper to make windows builds work on Debian, though I hard-coded the path to libgcc.a to the Debian one.

TheBlueMatt commented 11 months ago

Gonna land this. Its trivial and needed for C#.