mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
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.
564 B
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. |
4 | msgtype,status_peer_error,0xFFF4 |
5 | msgdata,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) |
8 | msgdata,status_peer_error,warning,bool, |
9 | # From an abort, no reconnect but restart daemon |
10 | msgdata,status_peer_error,abort_do_restart,bool, |
11 | msgdata,status_peer_error,len,u16, |
12 | msgdata,status_peer_error,error_for_them,u8,len |