Files
palladum-lightning/gossipd/gossip_wire.csv
Rusty Russell 11dc1b341c gossipd: hand all candidates up to lightningd to select routeboost.
This lets us do more flexible filtering in the next patch.  But it also
keeps some weird logic out of gossipd.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-01-04 08:07:22 +08:00

5.4 KiB

1#include <common/cryptomsg.h>
2#include <common/wireaddr.h>
3#include <wire/gen_onion_wire.h>
4# Initialize the gossip daemon.
5msgtypegossipctl_init3000
6msgdatagossipctl_initchainparamschainparams
7msgdatagossipctl_initidnode_id
8msgdatagossipctl_initgflenu16
9msgdatagossipctl_initglobalfeaturesu8gflen
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
32# We don't pass doublesso pass riskfactor 1000000.
33msgdatagossip_getroute_requestriskfactor_by_millionu64
34msgdatagossip_getroute_requestfinal_cltvu32
35msgdatagossip_getroute_requestfuzzdouble
36msgdatagossip_getroute_requestnum_excludedu16
37msgdatagossip_getroute_requestexcludedexclude_entrynum_excluded
38msgdatagossip_getroute_requestmax_hopsu32
39msgtypegossip_getroute_reply3106
40msgdatagossip_getroute_replynum_hopsu16
41msgdatagossip_getroute_replyhopsroute_hopnum_hops
42msgtypegossip_getchannels_request3007
43msgdatagossip_getchannels_requestshort_channel_id?short_channel_id
44msgdatagossip_getchannels_requestsource?node_id
45msgdatagossip_getchannels_requestprev?short_channel_id
46msgtypegossip_getchannels_reply3107
47msgdatagossip_getchannels_replycompletebool
48msgdatagossip_getchannels_replynum_channelsu32
49msgdatagossip_getchannels_replynodesgossip_getchannels_entrynum_channels
50# Ping/pong test. Waits for a reply if it expects one.
51msgtypegossip_ping3008
52msgdatagossip_pingidnode_id
53msgdatagossip_pingnum_pong_bytesu16
54msgdatagossip_pinglenu16
55msgtypegossip_ping_reply3108
56msgdatagossip_ping_replyidnode_id
57# False if id in gossip_ping was unknown.
58msgdatagossip_ping_replysentbool
59# 0 == no pong expected
60msgdatagossip_ping_replytotlenu16
61# Set artificial maximum reply_channel_range size. Master->gossipd
62msgtypegossip_dev_set_max_scids_encode_size3030
63msgdatagossip_dev_set_max_scids_encode_sizemaxu32
64# Given a short_channel_idreturn the other endpoint (or none if DNE)
65msgtypegossip_get_channel_peer3009
66msgdatagossip_get_channel_peerchannel_idshort_channel_id
67msgtypegossip_get_channel_peer_reply3109
68msgdatagossip_get_channel_peer_replypeer_id?node_id
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