core-lightning/gossipd/gossipd_wire.csv
Rusty Russell 8782d39476 connectd: handle onion messages.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-02-08 11:15:52 +10:30

4.7 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,rgb,u8,3
12msgdata,gossipd_init,alias,u8,32
13msgdata,gossipd_init,num_announcable,u16,
14msgdata,gossipd_init,announcable,wireaddr,num_announcable
15msgdata,gossipd_init,dev_gossip_time,?u32,
16msgdata,gossipd_init,dev_fast_gossip,bool,
17msgdata,gossipd_init,dev_fast_gossip_prune,bool,
18msgtype,gossipd_init_reply,3100
19# In developer mode, we can mess with time.
20msgtype,gossipd_dev_set_time,3001
21msgdata,gossipd_dev_set_time,dev_gossip_time,u32,
22# Set artificial maximum reply_channel_range size. Master->gossipd
23msgtype,gossipd_dev_set_max_scids_encode_size,3030
24msgdata,gossipd_dev_set_max_scids_encode_size,max,u32,
25# gossipd->master: we're closing this channel.
26msgtype,gossipd_local_channel_close,3027
27msgdata,gossipd_local_channel_close,short_channel_id,short_channel_id,
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: a potential funding outpoint was spent, please forget the eventual channel
38msgtype,gossipd_outpoint_spent,3024
39msgdata,gossipd_outpoint_spent,short_channel_id,short_channel_id,
40# master -> gossipd: stop gossip timers.
41msgtype,gossipd_dev_suppress,3032
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: please rewrite the gossip_store
47msgtype,gossipd_dev_compact_store,3034
48# gossipd -> master: ok
49msgtype,gossipd_dev_compact_store_reply,3134
50msgdata,gossipd_dev_compact_store_reply,success,bool,
51# master -> gossipd: blockheight increased.
52msgtype,gossipd_new_blockheight,3026
53msgdata,gossipd_new_blockheight,blockheight,u32,
54# gossipd: got it!
55msgtype,gossipd_new_blockheight_reply,3126
56# Lightningd tells us to inject a gossip message (for addgossip RPC)
57msgtype,gossipd_addgossip,3044
58msgdata,gossipd_addgossip,len,u16,
59msgdata,gossipd_addgossip,msg,u8,len
60# Empty string means no problem.
61msgtype,gossipd_addgossip_reply,3144
62msgdata,gossipd_addgossip_reply,err,wirestring,
63# Updated lease rates available
64msgtype,gossipd_new_lease_rates,3046
65msgdata,gossipd_new_lease_rates,rates,lease_rates,
66# Lightningd asks gossipd for any known addresses for that node.
67msgtype,gossipd_get_addrs,3050
68msgdata,gossipd_get_addrs,id,node_id,
69msgtype,gossipd_get_addrs_reply,3150
70msgdata,gossipd_get_addrs_reply,num,u16,
71msgdata,gossipd_get_addrs_reply,addrs,wireaddr,num
72# Tell master a local channel update (so it can serve errors).
73msgtype,gossipd_got_local_channel_update,3151
74msgdata,gossipd_got_local_channel_update,scid,short_channel_id,
75msgdata,gossipd_got_local_channel_update,len,u16,
76msgdata,gossipd_got_local_channel_update,channel_update,u8,len
77# Send this channel_update.
78msgtype,gossipd_local_channel_update,3004
79msgdata,gossipd_local_channel_update,id,node_id,
80msgdata,gossipd_local_channel_update,short_channel_id,short_channel_id,
81msgdata,gossipd_local_channel_update,disable,bool,
82msgdata,gossipd_local_channel_update,cltv_expiry_delta,u16,
83msgdata,gossipd_local_channel_update,htlc_minimum_msat,amount_msat,
84msgdata,gossipd_local_channel_update,fee_base_msat,u32,
85msgdata,gossipd_local_channel_update,fee_proportional_millionths,u32,
86msgdata,gossipd_local_channel_update,htlc_maximum_msat,amount_msat,
87# Send this channel_announcement
88msgtype,gossipd_local_channel_announcement,3006
89msgdata,gossipd_local_channel_announcement,id,node_id,
90msgdata,gossipd_local_channel_announcement,len,u16,
91msgdata,gossipd_local_channel_announcement,cannounce,u8,len
92# Tell gossipd about a private channel (to put it in the store)
93# cannounce has same structure, dummy sigs.
94msgtype,gossipd_local_private_channel,3008
95msgdata,gossipd_local_private_channel,id,node_id,
96msgdata,gossipd_local_private_channel,capacity,amount_sat,
97msgdata,gossipd_local_private_channel,scid,short_channel_id,
98msgdata,gossipd_local_private_channel,len,u16,
99msgdata,gossipd_local_private_channel,features,u8,len
100# Tell gossipd we used the channel update (in case it was deferred)
101msgtype,gossipd_used_local_channel_update,3052
102msgdata,gossipd_used_local_channel_update,scid,short_channel_id,