core-lightning/connectd/connectd_gossipd_wire.csv
Rusty Russell 9983c2fd8e gossipd: add routines to send gossip messages to and from connectd.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-02-08 11:15:52 +10:30

826 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.
5msgtype,gossipd_new_peer,4000
6msgdata,gossipd_new_peer,id,node_id,
7# Did we negotiate OPT_GOSSIP_QUERIES?
8msgdata,gossipd_new_peer,gossip_queries_feature,bool,
9# if success: + gossip fd
10msgtype,gossipd_new_peer_reply,4100
11msgdata,gossipd_new_peer_reply,success,bool,
12# connectd tells gossipd a gossip msg it received for peer.
13msgtype,gossipd_recv_gossip,4002
14msgdata,gossipd_recv_gossip,id,node_id,
15msgdata,gossipd_recv_gossip,len,u16,
16msgdata,gossipd_recv_gossip,msg,byte,len
17# Gossipd asks connectd to send a gossip msg for peer.
18msgtype,gossipd_send_gossip,4102
19msgdata,gossipd_send_gossip,id,node_id,
20msgdata,gossipd_send_gossip,len,u16,
21msgdata,gossipd_send_gossip,msg,byte,len