lightning-kmp icon indicating copy to clipboard operation
lightning-kmp copied to clipboard

More useful errors when sending fails

Open pm47 opened this issue 11 months ago • 0 comments

Our sending code results in generic NoAvailableChannels errors when a failure is returned by the channel (Commitment.sendAdd()). This logic seems to be inherited from eclair and makes sense in a multi-channels context, but not in lightning-kmp where we basically have 0 or 1 channel in Normal state. It would be much more helpful to return the error from the last channel tried.

pm47 avatar Mar 06 '24 14:03 pm47