core-lightning/gossipd/gossipd_wire.csv
Rusty Russell 5361107c9c gossipd: handle receipt of modern onion message.
And wire it through to the hook; update the plugins to recognize
modern vs obs2 onions.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-12-01 05:44:28 +10:30

3.9 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# Given a short_channel_id, return the latest (stripped) update for error msg.
26msgtype,gossipd_get_stripped_cupdate,3010
27msgdata,gossipd_get_stripped_cupdate,channel_id,short_channel_id,
28msgtype,gossipd_get_stripped_cupdate_reply,3110
29msgdata,gossipd_get_stripped_cupdate_reply,stripped_update_len,u16,
30msgdata,gossipd_get_stripped_cupdate_reply,stripped_update,u8,stripped_update_len
31# gossipd->master: we're closing this channel.
32msgtype,gossipd_local_channel_close,3027
33msgdata,gossipd_local_channel_close,short_channel_id,short_channel_id,
34# Gossipd->master get this tx output please.
35msgtype,gossipd_get_txout,3018
36msgdata,gossipd_get_txout,short_channel_id,short_channel_id,
37# master->gossipd here is the output, or empty if none.
38msgtype,gossipd_get_txout_reply,3118
39msgdata,gossipd_get_txout_reply,short_channel_id,short_channel_id,
40msgdata,gossipd_get_txout_reply,satoshis,amount_sat,
41msgdata,gossipd_get_txout_reply,len,u16,
42msgdata,gossipd_get_txout_reply,outscript,u8,len
43# master -> gossipd: a potential funding outpoint was spent, please forget the eventual channel
44msgtype,gossipd_outpoint_spent,3024
45msgdata,gossipd_outpoint_spent,short_channel_id,short_channel_id,
46# master -> gossipd: stop gossip timers.
47msgtype,gossipd_dev_suppress,3032
48# master -> gossipd: do you have a memleak?
49msgtype,gossipd_dev_memleak,3033
50msgtype,gossipd_dev_memleak_reply,3133
51msgdata,gossipd_dev_memleak_reply,leak,bool,
52# master -> gossipd: please rewrite the gossip_store
53msgtype,gossipd_dev_compact_store,3034
54# gossipd -> master: ok
55msgtype,gossipd_dev_compact_store_reply,3134
56msgdata,gossipd_dev_compact_store_reply,success,bool,
57# master -> gossipd: blockheight increased.
58msgtype,gossipd_new_blockheight,3026
59msgdata,gossipd_new_blockheight,blockheight,u32,
60msgtype,gossipd_got_onionmsg_to_us,3145
61msgdata,gossipd_got_onionmsg_to_us,obs2,bool,
62msgdata,gossipd_got_onionmsg_to_us,node_alias,pubkey,
63msgdata,gossipd_got_onionmsg_to_us,self_id,?secret,
64msgdata,gossipd_got_onionmsg_to_us,reply_blinding,?pubkey,
65msgdata,gossipd_got_onionmsg_to_us,reply_first_node,?pubkey,
66msgdata,gossipd_got_onionmsg_to_us,reply_path_len,u16,
67msgdata,gossipd_got_onionmsg_to_us,reply_path,onionmsg_path,reply_path_len
68msgdata,gossipd_got_onionmsg_to_us,rawmsg_len,u16,
69msgdata,gossipd_got_onionmsg_to_us,rawmsg,u8,rawmsg_len
70# Lightningd tells us to send an onion message.
71msgtype,gossipd_send_onionmsg,3041
72msgdata,gossipd_send_onionmsg,obs2,bool,
73msgdata,gossipd_send_onionmsg,id,node_id,
74msgdata,gossipd_send_onionmsg,onion_len,u16,
75msgdata,gossipd_send_onionmsg,onion,u8,onion_len
76msgdata,gossipd_send_onionmsg,blinding,pubkey,
77# Lightningd tells us to inject a gossip message (for addgossip RPC)
78msgtype,gossipd_addgossip,3044
79msgdata,gossipd_addgossip,len,u16,
80msgdata,gossipd_addgossip,msg,u8,len
81# Empty string means no problem.
82msgtype,gossipd_addgossip_reply,3144
83msgdata,gossipd_addgossip_reply,err,wirestring,
84# Updated lease rates available
85msgtype,gossipd_new_lease_rates,3046
86msgdata,gossipd_new_lease_rates,rates,lease_rates,