mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
3121cebf4c
Gossipd now simply gets told by channeld when peers arrive or leave. (it only needs to know for the seeker). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
803 B
803 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 | # peer is done |
10 | msgtype,gossipd_peer_gone,4101 |
11 | msgdata,gossipd_peer_gone,id,node_id, |
12 | # connectd tells gossipd a gossip msg it received for peer. |
13 | msgtype,gossipd_recv_gossip,4002 |
14 | msgdata,gossipd_recv_gossip,id,node_id, |
15 | msgdata,gossipd_recv_gossip,len,u16, |
16 | msgdata,gossipd_recv_gossip,msg,byte,len |
17 | # Gossipd asks connectd to send a gossip msg for peer. |
18 | msgtype,gossipd_send_gossip,4102 |
19 | msgdata,gossipd_send_gossip,id,node_id, |
20 | msgdata,gossipd_send_gossip,len,u16, |
21 | msgdata,gossipd_send_gossip,msg,byte,len |