core-lightning/gossipd/gossip_wire.csv
Rusty Russell df27fc55af More renaming of gfeatures to globalfeatures.
Use the BOLT #1 naming.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-10-09 08:40:52 +00:00

6.1 KiB

1#include <common/cryptomsg.h>
2#include <common/wireaddr.h>
3#include <wire/gen_onion_wire.h>
4# Initialize the gossip daemon.
5gossipctl_init,3000
6gossipctl_init,,broadcast_interval,u32
7gossipctl_init,,chain_hash,struct bitcoin_blkid
8gossipctl_init,,id,struct pubkey
9gossipctl_init,,gflen,u16
10gossipctl_init,,globalfeatures,gflen*u8
11gossipctl_init,,rgb,3*u8
12gossipctl_init,,alias,32*u8
13gossipctl_init,,update_channel_interval,u32
14gossipctl_init,,num_announcable,u16
15gossipctl_init,,announcable,num_announcable*struct wireaddr
16# Pass JSON-RPC getnodes call through
17gossip_getnodes_request,3005
18gossip_getnodes_request,,id,?struct pubkey
19#include <lightningd/gossip_msg.h>
20gossip_getnodes_reply,3105
21gossip_getnodes_reply,,num_nodes,u16
22gossip_getnodes_reply,,nodes,num_nodes*struct gossip_getnodes_entry
23# Pass JSON-RPC getroute call through
24gossip_getroute_request,3006
25gossip_getroute_request,,source,struct pubkey
26gossip_getroute_request,,destination,struct pubkey
27gossip_getroute_request,,msatoshi,u64
28gossip_getroute_request,,riskfactor,u16
29gossip_getroute_request,,final_cltv,u32
30gossip_getroute_request,,fuzz,double
31gossip_getroute_request,,seed,struct siphash_seed
32gossip_getroute_reply,3106
33gossip_getroute_reply,,num_hops,u16
34gossip_getroute_reply,,hops,num_hops*struct route_hop
35gossip_getchannels_request,3007
36gossip_getchannels_request,,short_channel_id,?struct short_channel_id
37gossip_getchannels_reply,3107
38gossip_getchannels_reply,,num_channels,u16
39gossip_getchannels_reply,,nodes,num_channels*struct gossip_getchannels_entry
40# Ping/pong test. Waits for a reply if it expects one.
41gossip_ping,3008
42gossip_ping,,id,struct pubkey
43gossip_ping,,num_pong_bytes,u16
44gossip_ping,,len,u16
45gossip_ping_reply,3108
46gossip_ping_reply,,id,struct pubkey
47# False if id in gossip_ping was unknown.
48gossip_ping_reply,,sent,bool
49# 0 == no pong expected
50gossip_ping_reply,,totlen,u16
51# Test of query_short_channel_ids. Master->gossipd
52gossip_query_scids,3031
53gossip_query_scids,,id,struct pubkey
54gossip_query_scids,,num_ids,u16
55gossip_query_scids,,ids,num_ids*struct short_channel_id
56# Gossipd -> master
57gossip_scids_reply,3131
58gossip_scids_reply,,ok,bool
59gossip_scids_reply,,complete,bool
60# Test gossip timestamp filtering.
61gossip_send_timestamp_filter,3028
62gossip_send_timestamp_filter,,id,struct pubkey
63gossip_send_timestamp_filter,,first_timestamp,u32
64gossip_send_timestamp_filter,,timestamp_range,u32
65# Test of query_channel_range. Master->gossipd
66gossip_query_channel_range,3029
67gossip_query_channel_range,,id,struct pubkey
68gossip_query_channel_range,,first_blocknum,u32
69gossip_query_channel_range,,number_of_blocks,u32
70# Gossipd -> master
71gossip_query_channel_range_reply,3129
72gossip_query_channel_range_reply,,final_first_block,u32
73gossip_query_channel_range_reply,,final_num_blocks,u32
74gossip_query_channel_range_reply,,final_complete,bool
75gossip_query_channel_range_reply,,num,u16
76gossip_query_channel_range_reply,,scids,num*struct short_channel_id
77# Set artificial maximum reply_channel_range size. Master->gossipd
78gossip_dev_set_max_scids_encode_size,3030
79gossip_dev_set_max_scids_encode_size,,max,u32
80# Given a short_channel_id, return the endpoints
81gossip_resolve_channel_request,3009
82gossip_resolve_channel_request,,channel_id,struct short_channel_id
83gossip_resolve_channel_reply,3109
84gossip_resolve_channel_reply,,num_keys,u16
85gossip_resolve_channel_reply,,keys,num_keys*struct pubkey
86# Channel daemon can ask for updates for a specific channel, for sending
87# errors. Must be distinct from WIRE_CHANNEL_ANNOUNCEMENT etc. gossip msgs!
88gossip_get_update,3012
89gossip_get_update,,short_channel_id,struct short_channel_id
90# If channel isn't known, update will be empty.
91gossip_get_update_reply,3112
92gossip_get_update_reply,,len,u16
93gossip_get_update_reply,,update,len*u8
94# Gossipd can tell channeld etc about gossip to fwd.
95gossip_send_gossip,3016
96gossip_send_gossip,,len,u16
97gossip_send_gossip,,gossip,len*u8
98# Both sides have seen the funding tx being locked, but we have not
99# yet reached the announcement depth. So we add the channel locally so
100# we (and peer) can update it already.
101gossip_local_add_channel,3017
102gossip_local_add_channel,,short_channel_id,struct short_channel_id
103gossip_local_add_channel,,remote_node_id,struct pubkey
104gossip_local_add_channel,,satoshis,u64
105gossip_local_channel_update,3026
106gossip_local_channel_update,,short_channel_id,struct short_channel_id
107gossip_local_channel_update,,disable,bool
108gossip_local_channel_update,,cltv_expiry_delta,u16
109gossip_local_channel_update,,htlc_minimum_msat,u64
110gossip_local_channel_update,,fee_base_msat,u32
111gossip_local_channel_update,,fee_proportional_millionths,u32
112gossip_local_channel_close,3027
113gossip_local_channel_close,,short_channel_id,struct short_channel_id
114# Gossipd->master get this tx output please.
115gossip_get_txout,3018
116gossip_get_txout,,short_channel_id,struct short_channel_id
117# master->gossipd here is the output, or empty if none.
118gossip_get_txout_reply,3118
119gossip_get_txout_reply,,short_channel_id,struct short_channel_id
120gossip_get_txout_reply,,satoshis,u64
121gossip_get_txout_reply,,len,u16
122gossip_get_txout_reply,,outscript,len*u8
123# master->gossipd a routing failure occurred
124gossip_routing_failure,3021
125gossip_routing_failure,,erring_node,struct pubkey
126gossip_routing_failure,,erring_channel,struct short_channel_id
127gossip_routing_failure,,failcode,u16
128gossip_routing_failure,,len,u16
129gossip_routing_failure,,channel_update,len*u8
130# master->gossipd temporarily mark a channel unroutable
131# (used in case of unparseable onion reply)
132gossip_mark_channel_unroutable,3022
133gossip_mark_channel_unroutable,,channel,struct short_channel_id
134# master -> gossipd: a potential funding outpoint was spent, please forget the eventual channel
135gossip_outpoint_spent,3024
136gossip_outpoint_spent,,short_channel_id,struct short_channel_id
137# master -> gossipd: stop gossip timers.
138gossip_dev_suppress,3032
139#include <common/bolt11.h>
140# master -> gossipd: get route_info for our incoming channels
141gossip_get_incoming_channels,3025
142# gossipd -> master: here they are.
143gossip_get_incoming_channels_reply,3125
144gossip_get_incoming_channels_reply,,num,u16
145gossip_get_incoming_channels_reply,,route_info,num*struct route_info