Files
palladum-lightning/gossipd/gossipd_wire.csv
Rusty Russell 1a85edd207 lightningd: no longer forward failures to gossipd, let caller do it.
We fix up the test by using pay, instead of sendpay (and making pay log
the expected message).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Changed: sendpay no longer extracts updates from errors, the caller should do it from the `raw_message`.
2021-02-02 13:44:01 +01:00

6.5 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.
6msgtypegossipd_init3000
7msgdatagossipd_initchainparamschainparams
8msgdatagossipd_initour_featuresfeature_set
9msgdatagossipd_initidnode_id
10msgdatagossipd_initrgbu83
11msgdatagossipd_initaliasu832
12msgdatagossipd_initnum_announcableu16
13msgdatagossipd_initannouncablewireaddrnum_announcable
14msgdatagossipd_initdev_gossip_time?u32
15msgdatagossipd_initdev_fast_gossipbool
16msgdatagossipd_initdev_fast_gossip_prunebool
17# In developer modewe can mess with time.
18msgtypegossipd_dev_set_time3001
19msgdatagossipd_dev_set_timedev_gossip_timeu32
20# Pass JSON-RPC getnodes call through
21msgtypegossipd_getnodes_request3005
22msgdatagossipd_getnodes_requestid?node_id
23#include <lightningd/gossip_msg.h>
24msgtypegossipd_getnodes_reply3105
25msgdatagossipd_getnodes_replynum_nodesu32
26msgdatagossipd_getnodes_replynodesgossip_getnodes_entrynum_nodes
27# Pass JSON-RPC getroute call through
28msgtypegossipd_getroute_request3006
29msgdatagossipd_getroute_requestsource?node_id
30msgdatagossipd_getroute_requestdestinationnode_id
31msgdatagossipd_getroute_requestmsatoshiamount_msat
32msgdatagossipd_getroute_requestriskfactor_millionthsu64
33msgdatagossipd_getroute_requestfinal_cltvu32
34msgdatagossipd_getroute_requestfuzz_millionthsu64
35msgdatagossipd_getroute_requestnum_excludedu16
36msgdatagossipd_getroute_requestexcludedexclude_entrynum_excluded
37msgdatagossipd_getroute_requestmax_hopsu32
38msgtypegossipd_getroute_reply3106
39msgdatagossipd_getroute_replynum_hopsu16
40msgdatagossipd_getroute_replyhopsroute_hopnum_hops
41msgtypegossipd_getchannels_request3007
42msgdatagossipd_getchannels_requestshort_channel_id?short_channel_id
43msgdatagossipd_getchannels_requestsource?node_id
44msgdatagossipd_getchannels_requestprev?short_channel_id
45msgtypegossipd_getchannels_reply3107
46msgdatagossipd_getchannels_replycompletebool
47msgdatagossipd_getchannels_replynum_channelsu32
48msgdatagossipd_getchannels_replynodesgossip_getchannels_entrynum_channels
49# Ping/pong test. Waits for a reply if it expects one.
50msgtypegossipd_ping3008
51msgdatagossipd_pingidnode_id
52msgdatagossipd_pingnum_pong_bytesu16
53msgdatagossipd_pinglenu16
54msgtypegossipd_ping_reply3108
55msgdatagossipd_ping_replyidnode_id
56# False if id in gossip_ping was unknown.
57msgdatagossipd_ping_replysentbool
58# 0 == no pong expected
59msgdatagossipd_ping_replytotlenu16
60# Set artificial maximum reply_channel_range size. Master->gossipd
61msgtypegossipd_dev_set_max_scids_encode_size3030
62msgdatagossipd_dev_set_max_scids_encode_sizemaxu32
63# Given a short_channel_idreturn the latest (stripped) update for error msg.
64msgtypegossipd_get_stripped_cupdate3010
65msgdatagossipd_get_stripped_cupdatechannel_idshort_channel_id
66msgtypegossipd_get_stripped_cupdate_reply3110
67msgdatagossipd_get_stripped_cupdate_replystripped_update_lenu16
68msgdatagossipd_get_stripped_cupdate_replystripped_updateu8stripped_update_len
69# gossipd->master: we're closing this channel.
70msgtypegossipd_local_channel_close3027
71msgdatagossipd_local_channel_closeshort_channel_idshort_channel_id
72# Gossipd->master get this tx output please.
73msgtypegossipd_get_txout3018
74msgdatagossipd_get_txoutshort_channel_idshort_channel_id
75# master->gossipd here is the outputor empty if none.
76msgtypegossipd_get_txout_reply3118
77msgdatagossipd_get_txout_replyshort_channel_idshort_channel_id
78msgdatagossipd_get_txout_replysatoshisamount_sat
79msgdatagossipd_get_txout_replylenu16
80msgdatagossipd_get_txout_replyoutscriptu8len
81# master -> gossipd: a potential funding outpoint was spentplease forget the eventual channel
82msgtypegossipd_outpoint_spent3024
83msgdatagossipd_outpoint_spentshort_channel_idshort_channel_id
84# master -> gossipd: stop gossip timers.
85msgtypegossipd_dev_suppress3032
86# master -> gossipd: do you have a memleak?
87msgtypegossipd_dev_memleak3033
88msgtypegossipd_dev_memleak_reply3133
89msgdatagossipd_dev_memleak_replyleakbool
90# master -> gossipd: please rewrite the gossip_store
91msgtypegossipd_dev_compact_store3034
92# gossipd -> master: ok
93msgtypegossipd_dev_compact_store_reply3134
94msgdatagossipd_dev_compact_store_replysuccessbool
95#include <common/bolt11.h>
96# master -> gossipd: get route_info for our incoming channels
97msgtypegossipd_get_incoming_channels3025
98# gossipd -> master: here they are.
99msgtypegossipd_get_incoming_channels_reply3125
100msgdatagossipd_get_incoming_channels_replynum_publicu16
101msgdatagossipd_get_incoming_channels_replypublic_route_inforoute_infonum_public
102msgdatagossipd_get_incoming_channels_replypublic_deadendsboolnum_public
103msgdatagossipd_get_incoming_channels_replynum_privateu16
104msgdatagossipd_get_incoming_channels_replyprivate_route_inforoute_infonum_private
105msgdatagossipd_get_incoming_channels_replyprivate_deadendsboolnum_private
106# master -> gossipd: blockheight increased.
107msgtypegossipd_new_blockheight3026
108msgdatagossipd_new_blockheightblockheightu32
109# Tell lightningd we got a onion message (for usor to fwd)
110msgtypegossipd_got_onionmsg_to_us3142
111msgdatagossipd_got_onionmsg_to_usblinding_in?pubkey
112msgdatagossipd_got_onionmsg_to_usreply_blinding?pubkey
113msgdatagossipd_got_onionmsg_to_usreply_path_lenu16
114msgdatagossipd_got_onionmsg_to_usreply_pathonionmsg_pathreply_path_len
115msgdatagossipd_got_onionmsg_to_usrawmsg_lenu16
116msgdatagossipd_got_onionmsg_to_usrawmsgu8rawmsg_len
117msgtypegossipd_got_onionmsg_forward3143
118msgdatagossipd_got_onionmsg_forwardnext_scid?short_channel_id
119msgdatagossipd_got_onionmsg_forwardnext_node_id?node_id
120msgdatagossipd_got_onionmsg_forwardnext_blinding?pubkey
121msgdatagossipd_got_onionmsg_forwardnext_onion_lenu16
122msgdatagossipd_got_onionmsg_forwardnext_onionu8next_onion_len
123# Lightningd tells us to send a onion message.
124msgtypegossipd_send_onionmsg3040
125msgdatagossipd_send_onionmsgidnode_id
126msgdatagossipd_send_onionmsgonion_lenu16
127msgdatagossipd_send_onionmsgonionu8onion_len
128msgdatagossipd_send_onionmsgblinding?pubkey
129# Lightningd tells us to inject a gossip message (for addgossip RPC)
130msgtypegossipd_addgossip3044
131msgdatagossipd_addgossiplenu16
132msgdatagossipd_addgossipmsgu8len
133# Empty string means no problem.
134msgtypegossipd_addgossip_reply3144
135msgdatagossipd_addgossip_replyerrwirestring