From 688baaad536a6524f2a48ec77c45e27c2dadc998 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 c28d23ec..f5aa96dd 100644 --- a/lsps2/intercept_handler.go +++ b/lsps2/intercept_handler.go @@ -487,7 +487,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(&chanUpdate) }