mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
75720ad0e1
This mainly helps our CI under valgrind, which starts a fresh instance and immediately calls the invoice command. This can cause the topology plugin to try to access the gossmap file before it's created. We can also move the gossmap reading in topology to init time. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
4.4 KiB
4.4 KiB
1 | #include <common/cryptomsg.h> |
---|---|
2 | #include <common/features.h> |
3 | #include <common/wireaddr.h> |
4 | #include <wire/onion_wire.h> |
5 | # Initialize the gossip daemon. |
6 | msgtype,gossipd_init,3000 |
7 | msgdata,gossipd_init,chainparams,chainparams, |
8 | msgdata,gossipd_init,our_features,feature_set, |
9 | msgdata,gossipd_init,id,node_id, |
10 | msgdata,gossipd_init,rgb,u8,3 |
11 | msgdata,gossipd_init,alias,u8,32 |
12 | msgdata,gossipd_init,num_announcable,u16, |
13 | msgdata,gossipd_init,announcable,wireaddr,num_announcable |
14 | msgdata,gossipd_init,dev_gossip_time,?u32, |
15 | msgdata,gossipd_init,dev_fast_gossip,bool, |
16 | msgdata,gossipd_init,dev_fast_gossip_prune,bool, |
17 | msgtype,gossipd_init_reply,3100 |
18 | # In developer mode, we can mess with time. |
19 | msgtype,gossipd_dev_set_time,3001 |
20 | msgdata,gossipd_dev_set_time,dev_gossip_time,u32, |
21 | # Ping/pong test. Waits for a reply if it expects one. |
22 | msgtype,gossipd_ping,3008 |
23 | msgdata,gossipd_ping,id,node_id, |
24 | msgdata,gossipd_ping,num_pong_bytes,u16, |
25 | msgdata,gossipd_ping,len,u16, |
26 | msgtype,gossipd_ping_reply,3108 |
27 | msgdata,gossipd_ping_reply,id,node_id, |
28 | # False if id in gossip_ping was unknown. |
29 | msgdata,gossipd_ping_reply,sent,bool, |
30 | # 0 == no pong expected |
31 | msgdata,gossipd_ping_reply,totlen,u16, |
32 | # Set artificial maximum reply_channel_range size. Master->gossipd |
33 | msgtype,gossipd_dev_set_max_scids_encode_size,3030 |
34 | msgdata,gossipd_dev_set_max_scids_encode_size,max,u32, |
35 | # Given a short_channel_id, return the latest (stripped) update for error msg. |
36 | msgtype,gossipd_get_stripped_cupdate,3010 |
37 | msgdata,gossipd_get_stripped_cupdate,channel_id,short_channel_id, |
38 | msgtype,gossipd_get_stripped_cupdate_reply,3110 |
39 | msgdata,gossipd_get_stripped_cupdate_reply,stripped_update_len,u16, |
40 | msgdata,gossipd_get_stripped_cupdate_reply,stripped_update,u8,stripped_update_len |
41 | # gossipd->master: we're closing this channel. |
42 | msgtype,gossipd_local_channel_close,3027 |
43 | msgdata,gossipd_local_channel_close,short_channel_id,short_channel_id, |
44 | # Gossipd->master get this tx output please. |
45 | msgtype,gossipd_get_txout,3018 |
46 | msgdata,gossipd_get_txout,short_channel_id,short_channel_id, |
47 | # master->gossipd here is the output, or empty if none. |
48 | msgtype,gossipd_get_txout_reply,3118 |
49 | msgdata,gossipd_get_txout_reply,short_channel_id,short_channel_id, |
50 | msgdata,gossipd_get_txout_reply,satoshis,amount_sat, |
51 | msgdata,gossipd_get_txout_reply,len,u16, |
52 | msgdata,gossipd_get_txout_reply,outscript,u8,len |
53 | # master -> gossipd: a potential funding outpoint was spent, please forget the eventual channel |
54 | msgtype,gossipd_outpoint_spent,3024 |
55 | msgdata,gossipd_outpoint_spent,short_channel_id,short_channel_id, |
56 | # master -> gossipd: stop gossip timers. |
57 | msgtype,gossipd_dev_suppress,3032 |
58 | # master -> gossipd: do you have a memleak? |
59 | msgtype,gossipd_dev_memleak,3033 |
60 | msgtype,gossipd_dev_memleak_reply,3133 |
61 | msgdata,gossipd_dev_memleak_reply,leak,bool, |
62 | # master -> gossipd: please rewrite the gossip_store |
63 | msgtype,gossipd_dev_compact_store,3034 |
64 | # gossipd -> master: ok |
65 | msgtype,gossipd_dev_compact_store_reply,3134 |
66 | msgdata,gossipd_dev_compact_store_reply,success,bool, |
67 | # master -> gossipd: blockheight increased. |
68 | msgtype,gossipd_new_blockheight,3026 |
69 | msgdata,gossipd_new_blockheight,blockheight,u32, |
70 | # Tell lightningd we got a onion message (for us, or to fwd) |
71 | msgtype,gossipd_got_onionmsg_to_us,3142 |
72 | msgdata,gossipd_got_onionmsg_to_us,blinding_in,?pubkey, |
73 | msgdata,gossipd_got_onionmsg_to_us,reply_blinding,?pubkey, |
74 | msgdata,gossipd_got_onionmsg_to_us,reply_path_len,u16, |
75 | msgdata,gossipd_got_onionmsg_to_us,reply_path,onionmsg_path,reply_path_len |
76 | msgdata,gossipd_got_onionmsg_to_us,rawmsg_len,u16, |
77 | msgdata,gossipd_got_onionmsg_to_us,rawmsg,u8,rawmsg_len |
78 | msgtype,gossipd_got_onionmsg_forward,3143 |
79 | msgdata,gossipd_got_onionmsg_forward,next_scid,?short_channel_id, |
80 | msgdata,gossipd_got_onionmsg_forward,next_node_id,?node_id, |
81 | msgdata,gossipd_got_onionmsg_forward,next_blinding,?pubkey, |
82 | msgdata,gossipd_got_onionmsg_forward,next_onion_len,u16, |
83 | msgdata,gossipd_got_onionmsg_forward,next_onion,u8,next_onion_len |
84 | # Lightningd tells us to send a onion message. |
85 | msgtype,gossipd_send_onionmsg,3040 |
86 | msgdata,gossipd_send_onionmsg,id,node_id, |
87 | msgdata,gossipd_send_onionmsg,onion_len,u16, |
88 | msgdata,gossipd_send_onionmsg,onion,u8,onion_len |
89 | msgdata,gossipd_send_onionmsg,blinding,?pubkey, |
90 | # Lightningd tells us to inject a gossip message (for addgossip RPC) |
91 | msgtype,gossipd_addgossip,3044 |
92 | msgdata,gossipd_addgossip,len,u16, |
93 | msgdata,gossipd_addgossip,msg,u8,len |
94 | # Empty string means no problem. |
95 | msgtype,gossipd_addgossip_reply,3144 |
96 | msgdata,gossipd_addgossip_reply,err,wirestring, |