Open da-kami opened 1 year ago
I think I run into the same issue lately. To me, I think this was happening when I tried to open a CFD with a maker margin above the channel funds. Can you reproduce?
Yes, likely it was above maker funds. We could actually validate that the maker can fulfill the CFD, because we should be able to query the channel amounts and calculate how much the maker needs! That would be a good additional validation step :)
regardless of the cause , we could catch the panic and display "failed to open a cfd"
I believe we have to find out the real cause of poisoning of this mutex. There was a panic in a call before, and if this happens we can't really do much anymore - some invariants are not held and there's no way we can continue using ldk. Furthermore, regardless of the cause, we should come up with a way that reinitialises the node after such an error (as it's irrecoverable).
I guess we could simply call runLdk
again in case of an error?