2020-08-25 04:16:22 +02:00
|
|
|
#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,
|
2022-01-08 14:29:29 +01:00
|
|
|
# Did we negotiate OPT_GOSSIP_QUERIES?
|
2020-08-25 04:16:22 +02:00
|
|
|
msgdata,gossipd_new_peer,gossip_queries_feature,bool,
|
|
|
|
|
2022-01-08 14:29:29 +01:00
|
|
|
# if success: + gossip fd
|
2020-08-25 04:16:22 +02:00
|
|
|
msgtype,gossipd_new_peer_reply,4100
|
|
|
|
msgdata,gossipd_new_peer_reply,success,bool,
|
2022-01-24 21:07:52 +01:00
|
|
|
|
|
|
|
# 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
|