core-lightning/gossipd/gossipd_wire.csv
Rusty Russell f2a4bd6ad8 wire: import new onion message spec.
One change from the obsolete version handling, gossipd will no longer send
forwarding onion msgs to lightningd, but will forward it directly.
That was the effect before, anyway.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-09-22 09:10:34 +09:30

5.3 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# Ping/pong test. Waits for a reply if it expects one.
23msgtype,gossipd_ping,3008
24msgdata,gossipd_ping,id,node_id,
25msgdata,gossipd_ping,num_pong_bytes,u16,
26msgdata,gossipd_ping,len,u16,
27msgtype,gossipd_ping_reply,3108
28msgdata,gossipd_ping_reply,id,node_id,
29# False if id in gossip_ping was unknown.
30msgdata,gossipd_ping_reply,sent,bool,
31# 0 == no pong expected
32msgdata,gossipd_ping_reply,totlen,u16,
33# Set artificial maximum reply_channel_range size. Master->gossipd
34msgtype,gossipd_dev_set_max_scids_encode_size,3030
35msgdata,gossipd_dev_set_max_scids_encode_size,max,u32,
36# Given a short_channel_id, return the latest (stripped) update for error msg.
37msgtype,gossipd_get_stripped_cupdate,3010
38msgdata,gossipd_get_stripped_cupdate,channel_id,short_channel_id,
39msgtype,gossipd_get_stripped_cupdate_reply,3110
40msgdata,gossipd_get_stripped_cupdate_reply,stripped_update_len,u16,
41msgdata,gossipd_get_stripped_cupdate_reply,stripped_update,u8,stripped_update_len
42# gossipd->master: we're closing this channel.
43msgtype,gossipd_local_channel_close,3027
44msgdata,gossipd_local_channel_close,short_channel_id,short_channel_id,
45# Gossipd->master get this tx output please.
46msgtype,gossipd_get_txout,3018
47msgdata,gossipd_get_txout,short_channel_id,short_channel_id,
48# master->gossipd here is the output, or empty if none.
49msgtype,gossipd_get_txout_reply,3118
50msgdata,gossipd_get_txout_reply,short_channel_id,short_channel_id,
51msgdata,gossipd_get_txout_reply,satoshis,amount_sat,
52msgdata,gossipd_get_txout_reply,len,u16,
53msgdata,gossipd_get_txout_reply,outscript,u8,len
54# master -> gossipd: a potential funding outpoint was spent, please forget the eventual channel
55msgtype,gossipd_outpoint_spent,3024
56msgdata,gossipd_outpoint_spent,short_channel_id,short_channel_id,
57# master -> gossipd: stop gossip timers.
58msgtype,gossipd_dev_suppress,3032
59# master -> gossipd: do you have a memleak?
60msgtype,gossipd_dev_memleak,3033
61msgtype,gossipd_dev_memleak_reply,3133
62msgdata,gossipd_dev_memleak_reply,leak,bool,
63# master -> gossipd: please rewrite the gossip_store
64msgtype,gossipd_dev_compact_store,3034
65# gossipd -> master: ok
66msgtype,gossipd_dev_compact_store_reply,3134
67msgdata,gossipd_dev_compact_store_reply,success,bool,
68# master -> gossipd: blockheight increased.
69msgtype,gossipd_new_blockheight,3026
70msgdata,gossipd_new_blockheight,blockheight,u32,
71# Tell lightningd we got an obsolete onion message (for us, or to fwd)
72msgtype,gossipd_got_obs_onionmsg_to_us,3142
73msgdata,gossipd_got_obs_onionmsg_to_us,blinding_in,?pubkey,
74msgdata,gossipd_got_obs_onionmsg_to_us,reply_blinding,?pubkey,
75msgdata,gossipd_got_obs_onionmsg_to_us,reply_path_len,u16,
76msgdata,gossipd_got_obs_onionmsg_to_us,reply_path,onionmsg_path,reply_path_len
77msgdata,gossipd_got_obs_onionmsg_to_us,rawmsg_len,u16,
78msgdata,gossipd_got_obs_onionmsg_to_us,rawmsg,u8,rawmsg_len
79msgtype,gossipd_got_obs_onionmsg_forward,3143
80msgdata,gossipd_got_obs_onionmsg_forward,next_scid,?short_channel_id,
81msgdata,gossipd_got_obs_onionmsg_forward,next_node_id,?node_id,
82msgdata,gossipd_got_obs_onionmsg_forward,next_blinding,?pubkey,
83msgdata,gossipd_got_obs_onionmsg_forward,next_onion_len,u16,
84msgdata,gossipd_got_obs_onionmsg_forward,next_onion,u8,next_onion_len
85msgtype,gossipd_got_onionmsg_to_us,3145
86msgdata,gossipd_got_onionmsg_to_us,blinding_in,pubkey,
87msgdata,gossipd_got_onionmsg_to_us,reply_blinding,?pubkey,
88msgdata,gossipd_got_onionmsg_to_us,reply_first_node,?pubkey,
89msgdata,gossipd_got_onionmsg_to_us,reply_path_len,u16,
90msgdata,gossipd_got_onionmsg_to_us,reply_path,onionmsg_path,reply_path_len
91msgdata,gossipd_got_onionmsg_to_us,rawmsg_len,u16,
92msgdata,gossipd_got_onionmsg_to_us,rawmsg,u8,rawmsg_len
93# Lightningd tells us to send a onion message.
94msgtype,gossipd_send_obs_onionmsg,3040
95msgdata,gossipd_send_obs_onionmsg,id,node_id,
96msgdata,gossipd_send_obs_onionmsg,onion_len,u16,
97msgdata,gossipd_send_obs_onionmsg,onion,u8,onion_len
98msgdata,gossipd_send_obs_onionmsg,blinding,?pubkey,
99msgtype,gossipd_send_onionmsg,3041
100msgdata,gossipd_send_onionmsg,id,node_id,
101msgdata,gossipd_send_onionmsg,onion_len,u16,
102msgdata,gossipd_send_onionmsg,onion,u8,onion_len
103msgdata,gossipd_send_onionmsg,blinding,pubkey,
104# Lightningd tells us to inject a gossip message (for addgossip RPC)
105msgtype,gossipd_addgossip,3044
106msgdata,gossipd_addgossip,len,u16,
107msgdata,gossipd_addgossip,msg,u8,len
108# Empty string means no problem.
109msgtype,gossipd_addgossip_reply,3144
110msgdata,gossipd_addgossip_reply,err,wirestring,
111# Updated lease rates available
112msgtype,gossipd_new_lease_rates,3046
113msgdata,gossipd_new_lease_rates,rates,lease_rates,