rgb-cln/gossipd/gossip_wire.csv

9.9 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,,gfeatures,gflen*u8
11gossipctl_init,,lflen,u16
12gossipctl_init,,lfeatures,lflen*u8
13gossipctl_init,,num_wireaddrs,u16
14gossipctl_init,,wireaddrs,num_wireaddrs*struct wireaddr_internal
15gossipctl_init,,listen_announce,num_wireaddrs*enum addr_listen_announce
16gossipctl_init,,rgb,3*u8
17gossipctl_init,,alias,32*u8
18gossipctl_init,,update_channel_interval,u32
19gossipctl_init,,reconnect,bool
20gossipctl_init,,tor_proxyaddr,?struct wireaddr
21gossipctl_init,,use_tor_proxy_always,bool
22gossipctl_init,,dev_allow_localhost,bool
23gossipctl_init,,use_dns,bool
24gossipctl_init,,tor_password,wirestring
25# Activate the gossip daemon, so others can connect.
26gossipctl_activate,3025
27# Do we listen?
28gossipctl_activate,,listen,bool
29# Gossipd->master, I am ready, here's the addresses I bound, can announce.
30gossipctl_activate_reply,3125
31gossipctl_activate_reply,,num_bindings,u16
32gossipctl_activate_reply,,bindings,num_bindings*struct wireaddr_internal
33gossipctl_activate_reply,,num_announcable,u16
34gossipctl_activate_reply,,announcable,num_announcable*struct wireaddr
35# Master -> gossipd: Optional hint for where to find peer.
36gossipctl_peer_addrhint,3014
37gossipctl_peer_addrhint,,id,struct pubkey
38gossipctl_peer_addrhint,,addr,struct wireaddr_internal
39# Master -> gossipd: connect to a peer.
40gossipctl_connect_to_peer,3001
41gossipctl_connect_to_peer,,id,struct pubkey
42# Gossipd->master: result (not a reply since it can be out-of-order, but
43# you will get one reply for every request).
44gossipctl_connect_to_peer_result,3020
45gossipctl_connect_to_peer_result,,id,struct pubkey
46# True it connected.
47gossipctl_connect_to_peer_result,,connected,bool
48# Otherwise, why we can't reach them.
49gossipctl_connect_to_peer_result,,failreason,wirestring
50# Master -> gossipd: try to always maintain connection to this peer (or not)
51gossipctl_peer_important,3010
52gossipctl_peer_important,,id,struct pubkey
53gossipctl_peer_important,,important,bool
54# Gossipd -> master: we got a peer. Two fds: peer and gossip
55gossip_peer_connected,3002
56gossip_peer_connected,,id,struct pubkey
57gossip_peer_connected,,addr,struct wireaddr_internal
58gossip_peer_connected,,crypto_state,struct crypto_state
59gossip_peer_connected,,gflen,u16
60gossip_peer_connected,,gfeatures,gflen*u8
61gossip_peer_connected,,lflen,u16
62gossip_peer_connected,,lfeatures,lflen*u8
63# Gossipd -> master: peer sent non-gossip packet. Two fds: peer and gossip
64gossip_peer_nongossip,3003
65gossip_peer_nongossip,,id,struct pubkey
66gossip_peer_nongossip,,addr,struct wireaddr_internal
67gossip_peer_nongossip,,crypto_state,struct crypto_state
68gossip_peer_nongossip,,gflen,u16
69gossip_peer_nongossip,,gfeatures,gflen*u8
70gossip_peer_nongossip,,lflen,u16
71gossip_peer_nongossip,,lfeatures,lflen*u8
72gossip_peer_nongossip,,len,u16
73gossip_peer_nongossip,,msg,len*u8
74# Master -> gossipd: release a peer (so we can open a channel)
75gossipctl_release_peer,3004
76gossipctl_release_peer,,id,struct pubkey
77# Gossipd -> master: reply to gossip_release_peer. Two fds: peer and gossip.
78gossipctl_release_peer_reply,3104
79gossipctl_release_peer_reply,,addr,struct wireaddr_internal
80gossipctl_release_peer_reply,,crypto_state,struct crypto_state
81gossipctl_release_peer_reply,,gflen,u16
82gossipctl_release_peer_reply,,gfeatures,gflen*u8
83gossipctl_release_peer_reply,,lflen,u16
84gossipctl_release_peer_reply,,lfeatures,lflen*u8
85# Gossipd -> master: reply to gossip_release_peer if we couldn't find the peer.
86gossipctl_release_peer_replyfail,3204
87# master -> gossipd: take back peer, with optional msg. (+peer fd, +gossip fd)
88gossipctl_hand_back_peer,3013
89gossipctl_hand_back_peer,,id,struct pubkey
90gossipctl_hand_back_peer,,crypto_state,struct crypto_state
91gossipctl_hand_back_peer,,len,u16
92gossipctl_hand_back_peer,,msg,len*u8
93# master -> gossipd: peer has disconnected.
94gossipctl_peer_disconnected,3015
95gossipctl_peer_disconnected,,id,struct pubkey
96# Pass JSON-RPC getnodes call through
97gossip_getnodes_request,3005
98gossip_getnodes_request,,id,?struct pubkey
99#include <lightningd/gossip_msg.h>
100gossip_getnodes_reply,3105
101gossip_getnodes_reply,,num_nodes,u16
102gossip_getnodes_reply,,nodes,num_nodes*struct gossip_getnodes_entry
103# Pass JSON-RPC getroute call through
104gossip_getroute_request,3006
105gossip_getroute_request,,source,struct pubkey
106gossip_getroute_request,,destination,struct pubkey
107gossip_getroute_request,,msatoshi,u64
108gossip_getroute_request,,riskfactor,u16
109gossip_getroute_request,,final_cltv,u32
110gossip_getroute_request,,fuzz,double
111gossip_getroute_request,,seed,struct siphash_seed
112gossip_getroute_reply,3106
113gossip_getroute_reply,,num_hops,u16
114gossip_getroute_reply,,hops,num_hops*struct route_hop
115gossip_getchannels_request,3007
116gossip_getchannels_request,,short_channel_id,?struct short_channel_id
117gossip_getchannels_reply,3107
118gossip_getchannels_reply,,num_channels,u16
119gossip_getchannels_reply,,nodes,num_channels*struct gossip_getchannels_entry
120# Ping/pong test. Waits for a reply if it expects one.
121gossip_ping,3008
122gossip_ping,,id,struct pubkey
123gossip_ping,,num_pong_bytes,u16
124gossip_ping,,len,u16
125gossip_ping_reply,3108
126# False if id in gossip_ping was unknown.
127gossip_ping_reply,,sent,bool
128# 0 == no pong expected
129gossip_ping_reply,,totlen,u16
130# Test of query_short_channel_ids. Master->gossipd
131gossip_query_scids,3031
132gossip_query_scids,,id,struct pubkey
133gossip_query_scids,,num_ids,u16
134gossip_query_scids,,ids,num_ids*struct short_channel_id
135# Gossipd -> master
136gossip_scids_reply,3131
137gossip_scids_reply,,ok,bool
138gossip_scids_reply,,complete,bool
139# Test gossip timestamp filtering.
140gossip_send_timestamp_filter,3028
141gossip_send_timestamp_filter,,id,struct pubkey
142gossip_send_timestamp_filter,,first_timestamp,u32
143gossip_send_timestamp_filter,,timestamp_range,u32
144# Test of query_channel_range. Master->gossipd
145gossip_query_channel_range,3029
146gossip_query_channel_range,,id,struct pubkey
147gossip_query_channel_range,,first_blocknum,u32
148gossip_query_channel_range,,number_of_blocks,u32
149# Gossipd -> master
150gossip_query_channel_range_reply,3129
151gossip_query_channel_range_reply,,final_first_block,u32
152gossip_query_channel_range_reply,,final_num_blocks,u32
153gossip_query_channel_range_reply,,final_complete,bool
154gossip_query_channel_range_reply,,num,u16
155gossip_query_channel_range_reply,,scids,num*struct short_channel_id
156# Set artificial maximum reply_channel_range size. Master->gossipd
157gossip_dev_set_max_scids_encode_size,3030
158gossip_dev_set_max_scids_encode_size,,max,u32
159# Given a short_channel_id, return the endpoints
160gossip_resolve_channel_request,3009
161gossip_resolve_channel_request,,channel_id,struct short_channel_id
162gossip_resolve_channel_reply,3109
163gossip_resolve_channel_reply,,num_keys,u16
164gossip_resolve_channel_reply,,keys,num_keys*struct pubkey
165# The main daemon asks for peers
166gossip_getpeers_request,3011
167gossip_getpeers_request,,id,?struct pubkey
168gossip_getpeers_reply,3111
169gossip_getpeers_reply,,num,u16
170gossip_getpeers_reply,,id,num*struct pubkey
171gossip_getpeers_reply,,addr,num*struct wireaddr_internal
172gossip_getpeers_reply,,nodes,num*struct gossip_getnodes_entry
173# Channel daemon can ask for updates for a specific channel, for sending
174# errors. Must be distinct from WIRE_CHANNEL_ANNOUNCEMENT etc. gossip msgs!
175gossip_get_update,3012
176gossip_get_update,,short_channel_id,struct short_channel_id
177# If channel isn't known, update will be empty.
178gossip_get_update_reply,3112
179gossip_get_update_reply,,len,u16
180gossip_get_update_reply,,update,len*u8
181# Gossipd can tell channeld etc about gossip to fwd.
182gossip_send_gossip,3016
183gossip_send_gossip,,len,u16
184gossip_send_gossip,,gossip,len*u8
185# Both sides have seen the funding tx being locked, but we have not
186# yet reached the announcement depth. So we add the channel locally so
187# we (and peer) can update it already.
188gossip_local_add_channel,3017
189gossip_local_add_channel,,short_channel_id,struct short_channel_id
190gossip_local_add_channel,,remote_node_id,struct pubkey
191gossip_local_channel_update,3026
192gossip_local_channel_update,,short_channel_id,struct short_channel_id
193gossip_local_channel_update,,disable,bool
194gossip_local_channel_update,,cltv_expiry_delta,u16
195gossip_local_channel_update,,htlc_minimum_msat,u64
196gossip_local_channel_update,,fee_base_msat,u32
197gossip_local_channel_update,,fee_proportional_millionths,u32
198gossip_local_channel_close,3027
199gossip_local_channel_close,,short_channel_id,struct short_channel_id
200# Gossipd->master get this tx output please.
201gossip_get_txout,3018
202gossip_get_txout,,short_channel_id,struct short_channel_id
203# master->gossipd here is the output, or empty if none.
204gossip_get_txout_reply,3118
205gossip_get_txout_reply,,short_channel_id,struct short_channel_id
206gossip_get_txout_reply,,satoshis,u64
207gossip_get_txout_reply,,len,u16
208gossip_get_txout_reply,,outscript,len*u8
209# master->gossipd a routing failure occurred
210gossip_routing_failure,3021
211gossip_routing_failure,,erring_node,struct pubkey
212gossip_routing_failure,,erring_channel,struct short_channel_id
213gossip_routing_failure,,failcode,u16
214gossip_routing_failure,,len,u16
215gossip_routing_failure,,channel_update,len*u8
216# master->gossipd temporarily mark a channel unroutable
217# (used in case of unparseable onion reply)
218gossip_mark_channel_unroutable,3022
219gossip_mark_channel_unroutable,,channel,struct short_channel_id
220# master->gossipd: Request to disconnect from a peer.
221gossipctl_peer_disconnect,3023
222gossipctl_peer_disconnect,,id,struct pubkey
223# Gossipd -> master: reply to gossip_peer_disconnect with peer id.
224gossipctl_peer_disconnect_reply,3123
225# Gossipd -> master: reply to gossip_peer_disconnect if we couldn't find the peer.
226gossipctl_peer_disconnect_replyfail,3223
227gossipctl_peer_disconnect_replyfail,,isconnected,bool
228# master -> gossipd: a potential funding outpoint was spent, please forget the eventual channel
229gossip_outpoint_spent,3024
230gossip_outpoint_spent,,short_channel_id,struct short_channel_id