mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
d14e273b04
This is in line with the warnings draft, where all-zeroes in a channel_id is no longer special (i.e. it will be ignored). But gossipd would send these if it got upset with us, so it's best practice to ignore them for now anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Added: Protocol: we treat error messages from peer which refer to "all channels" as warnings, not errors.
572 B
572 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 | # This is implied if error_for_them, but master tries not to parse packets. |
6 | msgdata,status_peer_error,channel,channel_id, |
7 | msgdata,status_peer_error,desc,wirestring, |
8 | # Take a deep breath, then try reconnecting to the precious little snowflake. |
9 | msgdata,status_peer_error,warning,bool, |
10 | msgdata,status_peer_error,pps,per_peer_state, |
11 | msgdata,status_peer_error,len,u16, |
12 | msgdata,status_peer_error,error_for_them,u8,len |