mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-08 14:50:26 +01:00
f76ff90485
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>
431 B
431 B
1 | #include <common/crypto_state.h> |
---|---|
2 | # An error occurred: if error_for_them, that to go to them. |
3 | status_peer_error,0xFFF4 |
4 | # This is implied if error_for_them, but master tries not to parse packets. |
5 | status_peer_error,,channel,struct channel_id |
6 | status_peer_error,,desc,wirestring |
7 | status_peer_error,,crypto_state,struct crypto_state |
8 | status_peer_error,,gossip_index,u64 |
9 | status_peer_error,,len,u16 |
10 | status_peer_error,,error_for_them,len*u8 |