Files
palladum-lightning/gossipd/gossipd_wire.csv
2025-11-13 21:21:29 +10:30

3.0 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_wiregen.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_fast_gossip,bool,
12msgdata,gossipd_init,dev_fast_gossip_prune,bool,
13msgdata,gossipd_init,autoconnect_seeker_peers,u32,
14# Gossipd tells us all our public channel_updates before init_reply.
15msgtype,gossipd_init_cupdate,3101
16msgdata,gossipd_init_cupdate,scid,short_channel_id,
17msgdata,gossipd_init_cupdate,len,u16,
18msgdata,gossipd_init_cupdate,cupdate,u8,len
19# Gossipd tells us our node_announcement before init_reply.
20msgtype,gossipd_init_nannounce,3102
21msgdata,gossipd_init_nannounce,len,u16,
22msgdata,gossipd_init_nannounce,nannounce,u8,len
23msgtype,gossipd_init_reply,3100
24# Gossipd->master get this tx output please.
25msgtype,gossipd_get_txout,3018
26msgdata,gossipd_get_txout,short_channel_id,short_channel_id,
27# master->gossipd here is the output, or empty if none.
28msgtype,gossipd_get_txout_reply,3118
29msgdata,gossipd_get_txout_reply,short_channel_id,short_channel_id,
30msgdata,gossipd_get_txout_reply,satoshis,amount_sat,
31msgdata,gossipd_get_txout_reply,len,u16,
32msgdata,gossipd_get_txout_reply,outscript,u8,len
33# master -> gossipd: these potential funding outpoints were spent, please forget any channels
34msgtype,gossipd_outpoints_spent,3024
35msgdata,gossipd_outpoints_spent,blockheight,u32,
36msgdata,gossipd_outpoints_spent,len,u32,
37msgdata,gossipd_outpoints_spent,short_channel_id,short_channel_id,len
38# master -> gossipd: do you have a memleak?
39msgtype,gossipd_dev_memleak,3033
40msgtype,gossipd_dev_memleak_reply,3133
41msgdata,gossipd_dev_memleak_reply,leak,bool,
42# master -> gossipd: blockheight increased.
43msgtype,gossipd_new_blockheight,3026
44msgdata,gossipd_new_blockheight,blockheight,u32,
45# gossipd: got it!
46msgtype,gossipd_new_blockheight_reply,3126
47# Lightningd tells us to inject a gossip message (for addgossip RPC)
48msgtype,gossipd_addgossip,3044
49msgdata,gossipd_addgossip,len,u16,
50msgdata,gossipd_addgossip,msg,u8,len
51msgdata,gossipd_addgossip,known_channel,?amount_sat,
52# Empty string means no problem.
53msgtype,gossipd_addgossip_reply,3144
54msgdata,gossipd_addgossip_reply,err,wirestring,
55subtype,peer_update
56subtypedata,peer_update,scid,short_channel_id,
57subtypedata,peer_update,fee_base,u32,
58subtypedata,peer_update,fee_ppm,u32,
59subtypedata,peer_update,cltv_delta,u16,
60subtypedata,peer_update,htlc_minimum_msat,amount_msat,
61subtypedata,peer_update,htlc_maximum_msat,amount_msat,
62# Tell lightningd we received channel update info for a local channel
63msgtype,gossipd_remote_channel_update,3010
64msgdata,gossipd_remote_channel_update,source_node,?node_id,
65msgdata,gossipd_remote_channel_update,peer_update,peer_update,
66# Ask lightningd to try to connect to a peer.
67msgtype,gossipd_connect_to_peer,3011
68msgdata,gossipd_connect_to_peer,id,node_id,