Files
palladum-lightning/gossipd/gossip_wire.csv
Rusty Russell 2f1502abf4 cleanup: make 'u8 *features' and 'struct feature_set *fset' more explicit.
It's almost always "their_features" and "our_features" respectively, so
make those names clear.

Suggested-by: @cdecker
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-04-03 13:13:21 +10:30

5.5 KiB

1#include <common/cryptomsg.h>
2#include <common/features.h>
3#include <common/wireaddr.h>
4#include <wire/gen_onion_wire.h>
5# Initialize the gossip daemon.
6msgtypegossipctl_init3000
7msgdatagossipctl_initchainparamschainparams
8msgdatagossipctl_initour_featuresfeature_set
9msgdatagossipctl_initidnode_id
10msgdatagossipctl_initrgbu83
11msgdatagossipctl_initaliasu832
12msgdatagossipctl_initnum_announcableu16
13msgdatagossipctl_initannouncablewireaddrnum_announcable
14msgdatagossipctl_initdev_gossip_time?u32
15msgdatagossipctl_initdev_fast_gossipbool
16msgdatagossipctl_initdev_fast_gossip_prunebool
17# In developer modewe can mess with time.
18msgtypegossip_dev_set_time3001
19msgdatagossip_dev_set_timedev_gossip_timeu32
20# Pass JSON-RPC getnodes call through
21msgtypegossip_getnodes_request3005
22msgdatagossip_getnodes_requestid?node_id
23#include <lightningd/gossip_msg.h>
24msgtypegossip_getnodes_reply3105
25msgdatagossip_getnodes_replynum_nodesu32
26msgdatagossip_getnodes_replynodesgossip_getnodes_entrynum_nodes
27# Pass JSON-RPC getroute call through
28msgtypegossip_getroute_request3006
29msgdatagossip_getroute_requestsource?node_id
30msgdatagossip_getroute_requestdestinationnode_id
31msgdatagossip_getroute_requestmsatoshiamount_msat
32msgdatagossip_getroute_requestriskfactor_millionthsu64
33msgdatagossip_getroute_requestfinal_cltvu32
34msgdatagossip_getroute_requestfuzz_millionthsu64
35msgdatagossip_getroute_requestnum_excludedu16
36msgdatagossip_getroute_requestexcludedexclude_entrynum_excluded
37msgdatagossip_getroute_requestmax_hopsu32
38msgtypegossip_getroute_reply3106
39msgdatagossip_getroute_replynum_hopsu16
40msgdatagossip_getroute_replyhopsroute_hopnum_hops
41msgtypegossip_getchannels_request3007
42msgdatagossip_getchannels_requestshort_channel_id?short_channel_id
43msgdatagossip_getchannels_requestsource?node_id
44msgdatagossip_getchannels_requestprev?short_channel_id
45msgtypegossip_getchannels_reply3107
46msgdatagossip_getchannels_replycompletebool
47msgdatagossip_getchannels_replynum_channelsu32
48msgdatagossip_getchannels_replynodesgossip_getchannels_entrynum_channels
49# Ping/pong test. Waits for a reply if it expects one.
50msgtypegossip_ping3008
51msgdatagossip_pingidnode_id
52msgdatagossip_pingnum_pong_bytesu16
53msgdatagossip_pinglenu16
54msgtypegossip_ping_reply3108
55msgdatagossip_ping_replyidnode_id
56# False if id in gossip_ping was unknown.
57msgdatagossip_ping_replysentbool
58# 0 == no pong expected
59msgdatagossip_ping_replytotlenu16
60# Set artificial maximum reply_channel_range size. Master->gossipd
61msgtypegossip_dev_set_max_scids_encode_size3030
62msgdatagossip_dev_set_max_scids_encode_sizemaxu32
63# Given a short_channel_idreturn the latest (stripped) update for error msg.
64msgtypegossip_get_stripped_cupdate3010
65msgdatagossip_get_stripped_cupdatechannel_idshort_channel_id
66msgtypegossip_get_stripped_cupdate_reply3110
67msgdatagossip_get_stripped_cupdate_replystripped_update_lenu16
68msgdatagossip_get_stripped_cupdate_replystripped_updateu8stripped_update_len
69# gossipd->master: we're closing this channel.
70msgtypegossip_local_channel_close3027
71msgdatagossip_local_channel_closeshort_channel_idshort_channel_id
72# Gossipd->master get this tx output please.
73msgtypegossip_get_txout3018
74msgdatagossip_get_txoutshort_channel_idshort_channel_id
75# master->gossipd here is the outputor empty if none.
76msgtypegossip_get_txout_reply3118
77msgdatagossip_get_txout_replyshort_channel_idshort_channel_id
78msgdatagossip_get_txout_replysatoshisamount_sat
79msgdatagossip_get_txout_replylenu16
80msgdatagossip_get_txout_replyoutscriptu8len
81# master->gossipd an htlc failed with this onion error.
82msgtypegossip_payment_failure3021
83msgdatagossip_payment_failureerring_nodenode_id
84msgdatagossip_payment_failureerring_channelshort_channel_id
85msgdatagossip_payment_failureerring_channel_directionu8
86msgdatagossip_payment_failurelenu16
87msgdatagossip_payment_failureerroru8len
88# master -> gossipd: a potential funding outpoint was spentplease forget the eventual channel
89msgtypegossip_outpoint_spent3024
90msgdatagossip_outpoint_spentshort_channel_idshort_channel_id
91# master -> gossipd: stop gossip timers.
92msgtypegossip_dev_suppress3032
93# master -> gossipd: do you have a memleak?
94msgtypegossip_dev_memleak3033
95msgtypegossip_dev_memleak_reply3133
96msgdatagossip_dev_memleak_replyleakbool
97# master -> gossipd: please rewrite the gossip_store
98msgtypegossip_dev_compact_store3034
99# gossipd -> master: ok
100msgtypegossip_dev_compact_store_reply3134
101msgdatagossip_dev_compact_store_replysuccessbool
102#include <common/bolt11.h>
103# master -> gossipd: get route_info for our incoming channels
104msgtypegossip_get_incoming_channels3025
105# gossipd -> master: here they are.
106msgtypegossip_get_incoming_channels_reply3125
107msgdatagossip_get_incoming_channels_replynum_publicu16
108msgdatagossip_get_incoming_channels_replypublic_route_inforoute_infonum_public
109msgdatagossip_get_incoming_channels_replypublic_deadendsboolnum_public
110msgdatagossip_get_incoming_channels_replynum_privateu16
111msgdatagossip_get_incoming_channels_replyprivate_route_inforoute_infonum_private
112msgdatagossip_get_incoming_channels_replyprivate_deadendsboolnum_private
113# master -> gossipd: blockheight increased.
114msgtypegossip_new_blockheight3026
115msgdatagossip_new_blockheightblockheightu32