core-lightning/common/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

382 B

1#include <common/status_wire.h>
2status_log,0xFFF0
3status_log,,level,enum log_level
4status_log,,entry,wirestring
5status_io,0xFFF1
6status_io,,iodir,enum log_level
7status_io,,len,u16
8status_io,,data,len*u8
9status_fail,0xFFF2
10status_fail,,failreason,enum status_failreason
11status_fail,,desc,wirestring
12status_peer_connection_lost,0xFFF3
13# Note: 0xFFFF is reserved for MSG_PASS_FD!