mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
6115ed02e8
We now let gossipd do it. This also means there's nothing left in 'struct per_peer_state' to send across the wire (the fds are sent separately), so that gets removed from wire messages too. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
670 B
670 B
1 | #include <common/node_id.h> |
---|---|
2 | #include <common/per_peer_state.h> |
3 | #include <common/wireaddr.h> |
4 | # Communication between gossipd and connectd. |
5 | msgtype,gossipd_new_peer,4000 |
6 | msgdata,gossipd_new_peer,id,node_id, |
7 | # Did we negotiate OPT_GOSSIP_QUERIES? |
8 | msgdata,gossipd_new_peer,gossip_queries_feature,bool, |
9 | # if success: + gossip fd |
10 | msgtype,gossipd_new_peer_reply,4100 |
11 | msgdata,gossipd_new_peer_reply,success,bool, |
12 | # Connectd asks gossipd for any known addresses for that node. |
13 | msgtype,gossipd_get_addrs,4001 |
14 | msgdata,gossipd_get_addrs,id,node_id, |
15 | msgtype,gossipd_get_addrs_reply,4101 |
16 | msgdata,gossipd_get_addrs_reply,num,u16, |
17 | msgdata,gossipd_get_addrs_reply,addrs,wireaddr,num |