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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2022-06-23 22:11:26 +09:30
parent e48c0dda85
commit a196c77fe6

View File

@ -88,7 +88,7 @@ void peer_failed_received_errmsg(struct per_peer_state *pps,
* prior to 0.11 we would turn this into a warning, and they * prior to 0.11 we would turn this into a warning, and they
* would recover after a reconnect. So we downgrade, but snark * would recover after a reconnect. So we downgrade, but snark
* about it in the logs. */ * about it in the logs. */
if (!warning && streq(desc, "internal error")) { if (!warning && strends(desc, "internal error")) {
status_unusual("lnd sent 'internal error':" status_unusual("lnd sent 'internal error':"
" let's give it some space"); " let's give it some space");
warning = true; warning = true;