core-lightning/common/peer_status_wire.csv
Rusty Russell 48522f3e9e common: don't hang up when we receive a warning.
We were allowed to, but the spec removed that.  So we handle warnings
differently from errors now.

This also means the LND "internal error" workaround is done in
lightningd (we still disconnect, but we don't want to close channel).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Changed: Protocol: we no longer disconnect every time we receive a warning message.
2023-09-20 13:56:46 +09:30

564 B

1#include <common/channel_id.h>
2#include <common/per_peer_state.h>
3# An error occurred: if error_for_them, that to go to them.
4msgtype,status_peer_error,0xFFF4
5msgdata,status_peer_error,desc,wirestring,
6# Take a deep breath, then try reconnecting to the precious little snowflake.
7# (Means we sent it, since we don't hang up if they send one)
8msgdata,status_peer_error,warning,bool,
9# From an abort, no reconnect but restart daemon
10msgdata,status_peer_error,abort_do_restart,bool,
11msgdata,status_peer_error,len,u16,
12msgdata,status_peer_error,error_for_them,u8,len