mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-19 05:44:12 +01:00
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:
parent
e48c0dda85
commit
a196c77fe6
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user