From 8ec6e2a4f15e675b5723d1f3337fac58647cccc1 Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Sat, 30 Dec 2023 21:34:44 +0100 Subject: [PATCH] match both cln and lnd error message for not enough funds --- lsps2/intercept_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsps2/intercept_handler.go b/lsps2/intercept_handler.go index 7e95859d..0e407810 100644 --- a/lsps2/intercept_handler.go +++ b/lsps2/intercept_handler.go @@ -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) }