2018-07-24 08:18:58 +02:00
|
|
|
#include <common/cryptomsg.h>
|
2019-06-03 20:11:25 +02:00
|
|
|
#include <common/per_peer_state.h>
|
2018-07-24 08:18:58 +02:00
|
|
|
#include <common/wireaddr.h>
|
2018-07-24 08:18:58 +02:00
|
|
|
#include <lightningd/gossip_msg.h>
|
2018-07-24 08:18:58 +02:00
|
|
|
|
|
|
|
connectctl_init,2000
|
2019-04-08 11:58:32 +02:00
|
|
|
connectctl_init,,id,struct node_id
|
2018-07-24 08:18:58 +02:00
|
|
|
connectctl_init,,num_wireaddrs,u16
|
|
|
|
connectctl_init,,wireaddrs,num_wireaddrs*struct wireaddr_internal
|
|
|
|
connectctl_init,,listen_announce,num_wireaddrs*enum addr_listen_announce
|
|
|
|
connectctl_init,,tor_proxyaddr,?struct wireaddr
|
|
|
|
connectctl_init,,use_tor_proxy_always,bool
|
|
|
|
connectctl_init,,dev_allow_localhost,bool
|
|
|
|
connectctl_init,,use_dns,bool
|
|
|
|
connectctl_init,,tor_password,wirestring
|
|
|
|
|
|
|
|
# Connectd->master, here are the addresses I bound, can announce.
|
|
|
|
connectctl_init_reply,2100
|
|
|
|
connectctl_init_reply,,num_bindings,u16
|
|
|
|
connectctl_init_reply,,bindings,num_bindings*struct wireaddr_internal
|
|
|
|
connectctl_init_reply,,num_announcable,u16
|
|
|
|
connectctl_init_reply,,announcable,num_announcable*struct wireaddr
|
|
|
|
|
|
|
|
# Activate the connect daemon, so others can connect.
|
|
|
|
connectctl_activate,2025
|
|
|
|
# Do we listen?
|
|
|
|
connectctl_activate,,listen,bool
|
|
|
|
|
|
|
|
# Connectd->master, I am ready.
|
|
|
|
connectctl_activate_reply,2125
|
|
|
|
|
2018-07-24 08:18:58 +02:00
|
|
|
# connectd->master: disconnect this peer please (due to reconnect).
|
|
|
|
connect_reconnected,2112
|
2019-04-08 11:58:32 +02:00
|
|
|
connect_reconnected,,id,struct node_id
|
2018-07-24 08:18:58 +02:00
|
|
|
|
|
|
|
# Master -> connectd: connect to a peer.
|
|
|
|
connectctl_connect_to_peer,2001
|
2019-04-08 11:58:32 +02:00
|
|
|
connectctl_connect_to_peer,,id,struct node_id
|
2018-08-09 02:25:29 +02:00
|
|
|
connectctl_connect_to_peer,,seconds_waited,u32
|
2018-08-09 02:25:29 +02:00
|
|
|
connectctl_connect_to_peer,,addrhint,?struct wireaddr_internal
|
2018-07-24 08:18:58 +02:00
|
|
|
|
2018-08-09 02:25:29 +02:00
|
|
|
# Connectd->master: connect failed.
|
|
|
|
connectctl_connect_failed,2020
|
2019-04-08 11:58:32 +02:00
|
|
|
connectctl_connect_failed,,id,struct node_id
|
2018-08-09 02:25:29 +02:00
|
|
|
connectctl_connect_failed,,failreason,wirestring
|
2018-08-09 02:25:29 +02:00
|
|
|
connectctl_connect_failed,,seconds_to_delay,u32
|
2018-08-09 02:25:29 +02:00
|
|
|
connectctl_connect_failed,,addrhint,?struct wireaddr_internal
|
2018-07-24 08:18:58 +02:00
|
|
|
|
2019-05-04 07:53:13 +02:00
|
|
|
# Connectd -> master: we got a peer. Three fds: peer, gossip and gossip_store
|
2018-07-24 08:18:58 +02:00
|
|
|
connect_peer_connected,2002
|
2019-04-08 11:58:32 +02:00
|
|
|
connect_peer_connected,,id,struct node_id
|
2018-07-24 08:18:58 +02:00
|
|
|
connect_peer_connected,,addr,struct wireaddr_internal
|
2019-06-03 20:15:25 +02:00
|
|
|
connect_peer_connected,,pps,struct per_peer_state
|
2018-07-24 08:18:58 +02:00
|
|
|
connect_peer_connected,,gflen,u16
|
2018-09-28 05:24:24 +02:00
|
|
|
connect_peer_connected,,globalfeatures,gflen*u8
|
2018-07-24 08:18:58 +02:00
|
|
|
connect_peer_connected,,lflen,u16
|
2018-09-28 05:24:24 +02:00
|
|
|
connect_peer_connected,,localfeatures,lflen*u8
|
2018-07-24 08:18:58 +02:00
|
|
|
|
|
|
|
# master -> connectd: peer has disconnected.
|
|
|
|
connectctl_peer_disconnected,2015
|
2019-04-08 11:58:32 +02:00
|
|
|
connectctl_peer_disconnected,,id,struct node_id
|
2018-11-22 03:17:29 +01:00
|
|
|
|
|
|
|
# master -> connectd: do you have a memleak?
|
|
|
|
connect_dev_memleak,2033
|
|
|
|
|
|
|
|
connect_dev_memleak_reply,2133
|
|
|
|
connect_dev_memleak_reply,,leak,bool
|