core-lightning/connectd/connect_wire.csv
Rusty Russell d613b3fa9d connectd: simply use global features from common/features.
We currently hand the feature set from lightningd, but that's confusing
if they were ever different.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-12-06 23:11:51 +01:00

2.3 KiB

1#include <common/cryptomsg.h>
2#include <common/wireaddr.h>
3#include <lightningd/gossip_msg.h>
4connectctl_init,2000
5connectctl_init,,id,struct pubkey
6connectctl_init,,num_wireaddrs,u16
7connectctl_init,,wireaddrs,num_wireaddrs*struct wireaddr_internal
8connectctl_init,,listen_announce,num_wireaddrs*enum addr_listen_announce
9connectctl_init,,tor_proxyaddr,?struct wireaddr
10connectctl_init,,use_tor_proxy_always,bool
11connectctl_init,,dev_allow_localhost,bool
12connectctl_init,,use_dns,bool
13connectctl_init,,tor_password,wirestring
14# Connectd->master, here are the addresses I bound, can announce.
15connectctl_init_reply,2100
16connectctl_init_reply,,num_bindings,u16
17connectctl_init_reply,,bindings,num_bindings*struct wireaddr_internal
18connectctl_init_reply,,num_announcable,u16
19connectctl_init_reply,,announcable,num_announcable*struct wireaddr
20# Activate the connect daemon, so others can connect.
21connectctl_activate,2025
22# Do we listen?
23connectctl_activate,,listen,bool
24# Connectd->master, I am ready.
25connectctl_activate_reply,2125
26# connectd->master: disconnect this peer please (due to reconnect).
27connect_reconnected,2112
28connect_reconnected,,id,struct pubkey
29# Master -> connectd: connect to a peer.
30connectctl_connect_to_peer,2001
31connectctl_connect_to_peer,,id,struct pubkey
32connectctl_connect_to_peer,,seconds_waited,u32
33connectctl_connect_to_peer,,addrhint,?struct wireaddr_internal
34# Connectd->master: connect failed.
35connectctl_connect_failed,2020
36connectctl_connect_failed,,id,struct pubkey
37connectctl_connect_failed,,failreason,wirestring
38connectctl_connect_failed,,seconds_to_delay,u32
39connectctl_connect_failed,,addrhint,?struct wireaddr_internal
40# Connectd -> master: we got a peer. Two fds: peer and gossip
41connect_peer_connected,2002
42connect_peer_connected,,id,struct pubkey
43connect_peer_connected,,addr,struct wireaddr_internal
44connect_peer_connected,,crypto_state,struct crypto_state
45connect_peer_connected,,gflen,u16
46connect_peer_connected,,globalfeatures,gflen*u8
47connect_peer_connected,,lflen,u16
48connect_peer_connected,,localfeatures,lflen*u8
49# master -> connectd: peer has disconnected.
50connectctl_peer_disconnected,2015
51connectctl_peer_disconnected,,id,struct pubkey
52# master -> connectd: do you have a memleak?
53connect_dev_memleak,2033
54connect_dev_memleak_reply,2133
55connect_dev_memleak_reply,,leak,bool