mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
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>
26 lines
803 B
CSV
26 lines
803 B
CSV
#include <common/node_id.h>
|
|
#include <common/per_peer_state.h>
|
|
#include <common/wireaddr.h>
|
|
|
|
# Communication between gossipd and connectd.
|
|
msgtype,gossipd_new_peer,4000
|
|
msgdata,gossipd_new_peer,id,node_id,
|
|
# Did we negotiate OPT_GOSSIP_QUERIES?
|
|
msgdata,gossipd_new_peer,gossip_queries_feature,bool,
|
|
|
|
# peer is done
|
|
msgtype,gossipd_peer_gone,4101
|
|
msgdata,gossipd_peer_gone,id,node_id,
|
|
|
|
# connectd tells gossipd a gossip msg it received for peer.
|
|
msgtype,gossipd_recv_gossip,4002
|
|
msgdata,gossipd_recv_gossip,id,node_id,
|
|
msgdata,gossipd_recv_gossip,len,u16,
|
|
msgdata,gossipd_recv_gossip,msg,byte,len
|
|
|
|
# Gossipd asks connectd to send a gossip msg for peer.
|
|
msgtype,gossipd_send_gossip,4102
|
|
msgdata,gossipd_send_gossip,id,node_id,
|
|
msgdata,gossipd_send_gossip,len,u16,
|
|
msgdata,gossipd_send_gossip,msg,byte,len
|