Files
palladum-lightning/gossipd/gossipd_wire.csv
Rusty Russell acb8a8cc15 gossipd: dev-compact-gossip-store to manually invoke compaction.
And tests!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2026-02-16 17:23:33 +10:30

3.2 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,autoconnect_seeker_peers,u32,
12msgdata,gossipd_init,compactd_helper,wirestring,
13msgdata,gossipd_init,dev_fast_gossip,bool,
14msgdata,gossipd_init,dev_fast_gossip_prune,bool,
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# Gossipd->master get this tx output please.
26msgtype,gossipd_get_txout,3018
27msgdata,gossipd_get_txout,short_channel_id,short_channel_id,
28# master->gossipd here is the output, or empty if none.
29msgtype,gossipd_get_txout_reply,3118
30msgdata,gossipd_get_txout_reply,short_channel_id,short_channel_id,
31msgdata,gossipd_get_txout_reply,satoshis,amount_sat,
32msgdata,gossipd_get_txout_reply,len,u16,
33msgdata,gossipd_get_txout_reply,outscript,u8,len
34# master -> gossipd: these potential funding outpoints were spent, please forget any channels
35msgtype,gossipd_outpoints_spent,3024
36msgdata,gossipd_outpoints_spent,blockheight,u32,
37msgdata,gossipd_outpoints_spent,len,u32,
38msgdata,gossipd_outpoints_spent,short_channel_id,short_channel_id,len
39# master -> gossipd: do you have a memleak?
40msgtype,gossipd_dev_memleak,3033
41msgtype,gossipd_dev_memleak_reply,3133
42msgdata,gossipd_dev_memleak_reply,leak,bool,
43# master -> gossipd: please rewrite the gossip_store
44msgtype,gossipd_dev_compact_store,3034
45# gossipd -> master: empty string means no problem.
46msgtype,gossipd_dev_compact_store_reply,3134
47msgdata,gossipd_dev_compact_store_reply,result,wirestring,
48# master -> gossipd: blockheight increased.
49msgtype,gossipd_new_blockheight,3026
50msgdata,gossipd_new_blockheight,blockheight,u32,
51# gossipd: got it!
52msgtype,gossipd_new_blockheight_reply,3126
53# Lightningd tells us to inject a gossip message (for addgossip RPC)
54msgtype,gossipd_addgossip,3044
55msgdata,gossipd_addgossip,len,u16,
56msgdata,gossipd_addgossip,msg,u8,len
57msgdata,gossipd_addgossip,known_channel,?amount_sat,
58# Empty string means no problem.
59msgtype,gossipd_addgossip_reply,3144
60msgdata,gossipd_addgossip_reply,err,wirestring,
61subtype,peer_update
62subtypedata,peer_update,scid,short_channel_id,
63subtypedata,peer_update,fee_base,u32,
64subtypedata,peer_update,fee_ppm,u32,
65subtypedata,peer_update,cltv_delta,u16,
66subtypedata,peer_update,htlc_minimum_msat,amount_msat,
67subtypedata,peer_update,htlc_maximum_msat,amount_msat,
68# Tell lightningd we received channel update info for a local channel
69msgtype,gossipd_remote_channel_update,3010
70msgdata,gossipd_remote_channel_update,source_node,?node_id,
71msgdata,gossipd_remote_channel_update,peer_update,peer_update,
72# Ask lightningd to try to connect to a peer.
73msgtype,gossipd_connect_to_peer,3011
74msgdata,gossipd_connect_to_peer,id,node_id,