Skip to content

Commit

Permalink
common: downgrade LND 'internal error' properly.
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rustyrussell committed Jun 26, 2022
1 parent e48c0dd commit a196c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/peer_failed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
* would recover after a reconnect. So we downgrade, but snark
* about it in the logs. */
if (!warning && streq(desc, "internal error")) {
if (!warning && strends(desc, "internal error")) {
status_unusual("lnd sent 'internal error':"
" let's give it some space");
warning = true;
Expand Down

0 comments on commit a196c77

Please sign in to comment.