Skip to content

Commit 8f7e939

Browse files
committed
common: downgrade LND 'internal error' properly.
Thanks to @zerofeerouting for another report. "desc" here is the sanitized message, eg: "ERROR error channel 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef: internal error" Signed-off-by: Rusty Russell <[email protected]>
1 parent 2702173 commit 8f7e939

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/peer_failed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void peer_failed_received_errmsg(struct per_peer_state *pps,
8888
* prior to 0.11 we would turn this into a warning, and they
8989
* would recover after a reconnect. So we downgrade, but snark
9090
* about it in the logs. */
91-
if (!warning && streq(desc, "internal error")) {
91+
if (!warning && strends(desc, "internal error")) {
9292
status_unusual("lnd sent 'internal error':"
9393
" let's give it some space");
9494
warning = true;

0 commit comments

Comments
 (0)