Skip to content

Commit

Permalink
match both cln and lnd error message for not enough funds
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Jan 5, 2024
1 parent 3bf0377 commit 8ec6e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lsps2/intercept_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ func (i *Interceptor) ensureChannelOpen(payment *paymentState) {
)

code := common.FAILURE_UNKNOWN_NEXT_PEER
if strings.Contains(err.Error(), "not enough funds") {
if strings.Contains(err.Error(), "not enough") {
code = common.FailureTemporaryChannelFailure(&payment.chanUpdate)
}

Expand Down

0 comments on commit 8ec6e2a

Please sign in to comment.