core-lightning/common/peer_status_wire.csv
Rusty Russell f76ff90485 status: split off error messages into a new 'peer_status' type.
Several daemons (onchaind, hsm) want to use the status messages, but
don't communicate with peers.  The coming changes made them drag in
more code they didn't need, so instead we have a different
non-overlapping type.

We combine the status_received_errmsg and status_sent_errmsg
into a single status_peer_error, with the presence or not of the
'error_for_them' field indicating direction. 

We also rename status_fatal_connection_lost() to
peer_failed_connection_lost() to fit in.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-02-19 02:56:51 +00:00

431 B

1#include <common/crypto_state.h>
2# An error occurred: if error_for_them, that to go to them.
3status_peer_error,0xFFF4
4# This is implied if error_for_them, but master tries not to parse packets.
5status_peer_error,,channel,struct channel_id
6status_peer_error,,desc,wirestring
7status_peer_error,,crypto_state,struct crypto_state
8status_peer_error,,gossip_index,u64
9status_peer_error,,len,u16
10status_peer_error,,error_for_them,len*u8