Files
lightning/connectd/connectd_wire.csv
Rusty Russell 37e8d2fb0f connectd: disable advertizement of WEBSOCKET addresses.
This seems to prevent broad propagation, due to LND not allowing it.  See
	https://github.com/lightningnetwork/lnd/issues/6432

We still announce it if you disable deprecated-apis, so tests still work,
and hopefully we can enable it in future.

Fixes: #5196
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-EXPERIMENTAL: Protocol: disabled websocket announcement due to LND propagation issues
2022-04-21 06:13:55 +09:30

6.1 KiB

1#include <bitcoin/block.h>
2#include <common/channel_id.h>
3#include <common/cryptomsg.h>
4#include <common/features.h>
5#include <common/node_id.h>
6#include <common/wireaddr.h>
7#include <wire/onion_wire.h>
8msgtype,connectd_init,2000
9msgdata,connectd_init,chainparams,chainparams,
10msgdata,connectd_init,our_features,feature_set,
11msgdata,connectd_init,id,node_id,
12msgdata,connectd_init,num_wireaddrs,u16,
13msgdata,connectd_init,wireaddrs,wireaddr_internal,num_wireaddrs
14msgdata,connectd_init,listen_announce,enum addr_listen_announce,num_wireaddrs
15msgdata,connectd_init,tor_proxyaddr,?wireaddr,
16msgdata,connectd_init,use_tor_proxy_always,bool,
17msgdata,connectd_init,dev_allow_localhost,bool,
18msgdata,connectd_init,use_dns,bool,
19msgdata,connectd_init,tor_password,wirestring,
20msgdata,connectd_init,use_v3_autotor,bool,
21msgdata,connectd_init,timeout_secs,u32,
22msgdata,connectd_init,websocket_helper,wirestring,
23msgdata,connectd_init,websocket_port,u16,
24msgdata,connectd_init,announce_websocket,bool,
25msgdata,connectd_init,dev_fast_gossip,bool,
26# If this is set, then fd 5 is dev_disconnect_fd.
27msgdata,connectd_init,dev_disconnect,bool,
28msgdata,connectd_init,dev_no_ping_timer,bool,
29# Connectd->master, here are the addresses I bound, can announce.
30msgtype,connectd_init_reply,2100
31msgdata,connectd_init_reply,num_bindings,u16,
32msgdata,connectd_init_reply,bindings,wireaddr_internal,num_bindings
33msgdata,connectd_init_reply,num_announceable,u16,
34msgdata,connectd_init_reply,announceable,wireaddr,num_announceable
35msgdata,connectd_init_reply,failmsg,?wirestring,
36# Activate the connect daemon, so others can connect.
37msgtype,connectd_activate,2025
38# Do we listen?
39msgdata,connectd_activate,listen,bool,
40# Connectd->master, I am ready.
41msgtype,connectd_activate_reply,2125
42msgdata,connectd_activate_reply,failmsg,?wirestring,
43# connectd->master: disconnect this peer please (due to reconnect).
44msgtype,connectd_reconnected,2112
45msgdata,connectd_reconnected,id,node_id,
46# Master -> connectd: connect to a peer.
47msgtype,connectd_connect_to_peer,2001
48msgdata,connectd_connect_to_peer,id,node_id,
49msgdata,connectd_connect_to_peer,seconds_waited,u32,
50msgdata,connectd_connect_to_peer,len,u32,
51msgdata,connectd_connect_to_peer,addrs,wireaddr,len
52msgdata,connectd_connect_to_peer,addrhint,?wireaddr_internal,
53# Connectd->master: connect failed.
54msgtype,connectd_connect_failed,2020
55msgdata,connectd_connect_failed,id,node_id,
56msgdata,connectd_connect_failed,failcode,errcode_t,
57msgdata,connectd_connect_failed,failreason,wirestring,
58msgdata,connectd_connect_failed,seconds_to_delay,u32,
59msgdata,connectd_connect_failed,addrhint,?wireaddr_internal,
60# Connectd -> master: we got a peer.
61msgtype,connectd_peer_connected,2002
62msgdata,connectd_peer_connected,id,node_id,
63msgdata,connectd_peer_connected,addr,wireaddr_internal,
64msgdata,connectd_peer_connected,remote_addr,?wireaddr,
65msgdata,connectd_peer_connected,incoming,bool,
66msgdata,connectd_peer_connected,flen,u16,
67msgdata,connectd_peer_connected,features,u8,flen
68# connectd -> master: peer disconnected.
69msgtype,connectd_peer_disconnect_done,2006
70msgdata,connectd_peer_disconnect_done,id,node_id,
71# Master -> connectd: make peer active immediately (we want to talk)
72msgtype,connectd_peer_make_active,2004
73msgdata,connectd_peer_make_active,id,node_id,
74msgdata,connectd_peer_make_active,channel_id,channel_id,
75# Connectd -> master: peer said something interesting (or you said make_active)
76# Plus fd for peer daemon.
77msgtype,connectd_peer_active,2005
78msgdata,connectd_peer_active,id,node_id,
79msgdata,connectd_peer_active,msgtype,?u16,
80msgdata,connectd_peer_active,channel_id,channel_id,
81# master -> connectd: peer no longer wanted, you can disconnect.
82msgtype,connectd_discard_peer,2015
83msgdata,connectd_discard_peer,id,node_id,
84# master -> connectd: give message to peer and disconnect.
85msgtype,connectd_peer_final_msg,2003
86msgdata,connectd_peer_final_msg,id,node_id,
87msgdata,connectd_peer_final_msg,len,u16,
88msgdata,connectd_peer_final_msg,msg,u8,len
89# connectd->master: You said to connect, but we already were.
90msgtype,connectd_peer_already_connected,2007
91msgdata,connectd_peer_already_connected,id,node_id,
92# master -> connectd: do you have a memleak?
93msgtype,connectd_dev_memleak,2033
94msgtype,connectd_dev_memleak_reply,2133
95msgdata,connectd_dev_memleak_reply,leak,bool,
96# Ping/pong test. Waits for a reply if it expects one.
97msgtype,connectd_ping,2030
98msgdata,connectd_ping,id,node_id,
99msgdata,connectd_ping,num_pong_bytes,u16,
100msgdata,connectd_ping,len,u16,
101msgtype,connectd_ping_reply,2130
102# False if we there was already a ping in progress.
103msgdata,connectd_ping_reply,sent,bool,
104# 0 == no pong expected, otherwise length of pong.
105msgdata,connectd_ping_reply,totlen,u16,
106# We tell lightningd we got an onionmsg
107msgtype,connectd_got_onionmsg_to_us,2145
108msgdata,connectd_got_onionmsg_to_us,obs2,bool,
109msgdata,connectd_got_onionmsg_to_us,node_alias,pubkey,
110msgdata,connectd_got_onionmsg_to_us,self_id,?secret,
111msgdata,connectd_got_onionmsg_to_us,reply_blinding,?pubkey,
112msgdata,connectd_got_onionmsg_to_us,reply_first_node,?pubkey,
113msgdata,connectd_got_onionmsg_to_us,reply_path_len,u16,
114msgdata,connectd_got_onionmsg_to_us,reply_path,onionmsg_path,reply_path_len
115msgdata,connectd_got_onionmsg_to_us,rawmsg_len,u16,
116msgdata,connectd_got_onionmsg_to_us,rawmsg,u8,rawmsg_len
117# Lightningd tells us to send an onion message.
118msgtype,connectd_send_onionmsg,2041
119msgdata,connectd_send_onionmsg,obs2,bool,
120msgdata,connectd_send_onionmsg,id,node_id,
121msgdata,connectd_send_onionmsg,onion_len,u16,
122msgdata,connectd_send_onionmsg,onion,u8,onion_len
123msgdata,connectd_send_onionmsg,blinding,pubkey,
124# A custom message that we got from a peer and don't know how to handle, so we
125# forward it to the master for further handling.
126msgtype,connectd_custommsg_in,2110
127msgdata,connectd_custommsg_in,id,node_id,
128msgdata,connectd_custommsg_in,msg_len,u16,
129msgdata,connectd_custommsg_in,msg,u8,msg_len
130# A custom message that the lightningd tells us to send to the peer.
131msgtype,connectd_custommsg_out,2011
132msgdata,connectd_custommsg_out,id,node_id,
133msgdata,connectd_custommsg_out,msg_len,u16,
134msgdata,connectd_custommsg_out,msg,u8,msg_len
135# master -> connect: stop sending gossip.
136msgtype,connectd_dev_suppress_gossip,2032