mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
029d65cf2e
We actually intercept the gossip_timestamp_filter, so the gossip_store mechanism inside the per-peer daemon never kicks off for normal connections. The gossipwith tool doesn't set OPT_GOSSIP_QUERIES, so it gets both, but that only effects one place. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
3.3 KiB
3.3 KiB
1 | #include <bitcoin/block.h> |
---|---|
2 | #include <common/cryptomsg.h> |
3 | #include <common/features.h> |
4 | #include <common/node_id.h> |
5 | #include <common/per_peer_state.h> |
6 | #include <common/wireaddr.h> |
7 | msgtype,connectd_init,2000 |
8 | msgdata,connectd_init,chainparams,chainparams, |
9 | msgdata,connectd_init,our_features,feature_set, |
10 | msgdata,connectd_init,id,node_id, |
11 | msgdata,connectd_init,num_wireaddrs,u16, |
12 | msgdata,connectd_init,wireaddrs,wireaddr_internal,num_wireaddrs |
13 | msgdata,connectd_init,listen_announce,enum addr_listen_announce,num_wireaddrs |
14 | msgdata,connectd_init,tor_proxyaddr,?wireaddr, |
15 | msgdata,connectd_init,use_tor_proxy_always,bool, |
16 | msgdata,connectd_init,dev_allow_localhost,bool, |
17 | msgdata,connectd_init,use_dns,bool, |
18 | msgdata,connectd_init,tor_password,wirestring, |
19 | msgdata,connectd_init,use_v3_autotor,bool, |
20 | msgdata,connectd_init,timeout_secs,u32, |
21 | msgdata,connectd_init,websocket_helper,wirestring, |
22 | msgdata,connectd_init,websocket_port,u16, |
23 | msgdata,connectd_init,dev_fast_gossip,bool, |
24 | # If this is set, then fd 5 is dev_disconnect_fd. |
25 | msgdata,connectd_init,dev_disconnect,bool, |
26 | # Connectd->master, here are the addresses I bound, can announce. |
27 | msgtype,connectd_init_reply,2100 |
28 | msgdata,connectd_init_reply,num_bindings,u16, |
29 | msgdata,connectd_init_reply,bindings,wireaddr_internal,num_bindings |
30 | msgdata,connectd_init_reply,num_announcable,u16, |
31 | msgdata,connectd_init_reply,announcable,wireaddr,num_announcable |
32 | # Activate the connect daemon, so others can connect. |
33 | msgtype,connectd_activate,2025 |
34 | # Do we listen? |
35 | msgdata,connectd_activate,listen,bool, |
36 | # Connectd->master, I am ready. |
37 | msgtype,connectd_activate_reply,2125 |
38 | # connectd->master: disconnect this peer please (due to reconnect). |
39 | msgtype,connectd_reconnected,2112 |
40 | msgdata,connectd_reconnected,id,node_id, |
41 | # Master -> connectd: connect to a peer. |
42 | msgtype,connectd_connect_to_peer,2001 |
43 | msgdata,connectd_connect_to_peer,id,node_id, |
44 | msgdata,connectd_connect_to_peer,seconds_waited,u32, |
45 | msgdata,connectd_connect_to_peer,addrhint,?wireaddr_internal, |
46 | # Connectd->master: connect failed. |
47 | msgtype,connectd_connect_failed,2020 |
48 | msgdata,connectd_connect_failed,id,node_id, |
49 | msgdata,connectd_connect_failed,failcode,errcode_t, |
50 | msgdata,connectd_connect_failed,failreason,wirestring, |
51 | msgdata,connectd_connect_failed,seconds_to_delay,u32, |
52 | msgdata,connectd_connect_failed,addrhint,?wireaddr_internal, |
53 | # Connectd -> master: we got a peer. Three fds: peer, gossip and gossip_store |
54 | msgtype,connectd_peer_connected,2002 |
55 | msgdata,connectd_peer_connected,id,node_id, |
56 | msgdata,connectd_peer_connected,addr,wireaddr_internal, |
57 | msgdata,connectd_peer_connected,incoming,bool, |
58 | msgdata,connectd_peer_connected,pps,per_peer_state, |
59 | msgdata,connectd_peer_connected,flen,u16, |
60 | msgdata,connectd_peer_connected,features,u8,flen |
61 | # master -> connectd: peer has disconnected. |
62 | msgtype,connectd_peer_disconnected,2015 |
63 | msgdata,connectd_peer_disconnected,id,node_id, |
64 | # master -> connectd: give message to peer and disconnect. Three fds: peer, gossip and gossip_store |
65 | msgtype,connectd_peer_final_msg,2003 |
66 | msgdata,connectd_peer_final_msg,id,node_id, |
67 | msgdata,connectd_peer_final_msg,pps,per_peer_state, |
68 | msgdata,connectd_peer_final_msg,len,u16, |
69 | msgdata,connectd_peer_final_msg,msg,u8,len |
70 | # master -> connectd: do you have a memleak? |
71 | msgtype,connectd_dev_memleak,2033 |
72 | msgtype,connectd_dev_memleak_reply,2133 |
73 | msgdata,connectd_dev_memleak_reply,leak,bool, |