core-lightning/gossipd/gossipd_wire.csv
2024-11-22 15:21:45 +10:30

3.5 KiB

1#include <common/cryptomsg.h>
2#include <common/features.h>
3#include <common/wireaddr.h>
4#include <wire/peer_wire.h>
5#include <wire/onion_wire.h>
6# Initialize the gossip daemon.
7msgtype,gossipd_init,3000
8msgdata,gossipd_init,chainparams,chainparams,
9msgdata,gossipd_init,our_features,feature_set,
10msgdata,gossipd_init,id,node_id,
11msgdata,gossipd_init,dev_gossip_time,?u32,
12msgdata,gossipd_init,dev_fast_gossip,bool,
13msgdata,gossipd_init,dev_fast_gossip_prune,bool,
14msgdata,gossipd_init,autoconnect_seeker_peers,u32,
15# Gossipd tells us all our public channel_updates before init_reply.
16msgtype,gossipd_init_cupdate,3101
17msgdata,gossipd_init_cupdate,scid,short_channel_id,
18msgdata,gossipd_init_cupdate,len,u16,
19msgdata,gossipd_init_cupdate,cupdate,u8,len
20# Gossipd tells us our node_announcement before init_reply.
21msgtype,gossipd_init_nannounce,3102
22msgdata,gossipd_init_nannounce,len,u16,
23msgdata,gossipd_init_nannounce,nannounce,u8,len
24msgtype,gossipd_init_reply,3100
25# In developer mode, we can mess with time.
26msgtype,gossipd_dev_set_time,3001
27msgdata,gossipd_dev_set_time,dev_gossip_time,u32,
28# Gossipd->master get this tx output please.
29msgtype,gossipd_get_txout,3018
30msgdata,gossipd_get_txout,short_channel_id,short_channel_id,
31# master->gossipd here is the output, or empty if none.
32msgtype,gossipd_get_txout_reply,3118
33msgdata,gossipd_get_txout_reply,short_channel_id,short_channel_id,
34msgdata,gossipd_get_txout_reply,satoshis,amount_sat,
35msgdata,gossipd_get_txout_reply,len,u16,
36msgdata,gossipd_get_txout_reply,outscript,u8,len
37# master -> gossipd: these potential funding outpoints were spent, please forget any channels
38msgtype,gossipd_outpoints_spent,3024
39msgdata,gossipd_outpoints_spent,blockheight,u32,
40msgdata,gossipd_outpoints_spent,len,u32,
41msgdata,gossipd_outpoints_spent,short_channel_id,short_channel_id,len
42# master -> gossipd: do you have a memleak?
43msgtype,gossipd_dev_memleak,3033
44msgtype,gossipd_dev_memleak_reply,3133
45msgdata,gossipd_dev_memleak_reply,leak,bool,
46# master -> gossipd: blockheight increased.
47msgtype,gossipd_new_blockheight,3026
48msgdata,gossipd_new_blockheight,blockheight,u32,
49# gossipd: got it!
50msgtype,gossipd_new_blockheight_reply,3126
51# Lightningd tells us to inject a gossip message (for addgossip RPC)
52msgtype,gossipd_addgossip,3044
53msgdata,gossipd_addgossip,len,u16,
54msgdata,gossipd_addgossip,msg,u8,len
55msgdata,gossipd_addgossip,known_channel,?amount_sat,
56# Empty string means no problem.
57msgtype,gossipd_addgossip_reply,3144
58msgdata,gossipd_addgossip_reply,err,wirestring,
59# Lightningd asks gossipd for any known addresses for that node.
60msgtype,gossipd_get_addrs,3050
61msgdata,gossipd_get_addrs,id,node_id,
62msgtype,gossipd_get_addrs_reply,3150
63msgdata,gossipd_get_addrs_reply,num,u16,
64msgdata,gossipd_get_addrs_reply,addrs,wireaddr,num
65subtype,peer_update
66subtypedata,peer_update,scid,short_channel_id,
67subtypedata,peer_update,fee_base,u32,
68subtypedata,peer_update,fee_ppm,u32,
69subtypedata,peer_update,cltv_delta,u16,
70subtypedata,peer_update,htlc_minimum_msat,amount_msat,
71subtypedata,peer_update,htlc_maximum_msat,amount_msat,
72# Tell lightningd we received channel update info for a local channel
73msgtype,gossipd_remote_channel_update,3010
74msgdata,gossipd_remote_channel_update,source_node,?node_id,
75msgdata,gossipd_remote_channel_update,peer_update,peer_update,
76# Ask lightningd to connect to a peer.
77msgtype,gossipd_connect_to_peer,3011
78msgdata,gossipd_connect_to_peer,id,node_id,
79msgdata,gossipd_connect_to_peer,num,u16,
80msgdata,gossipd_connect_to_peer,addrs,wireaddr,num,