core-lightning/gossipd/gossip_wire.csv
Rusty Russell 933c1794a1 gossipd: gossip_get_update / gossip_get_update_reply from channeld.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-12-02 12:54:12 +01:00

4.8 KiB

1#include <common/cryptomsg.h>
2#include <common/wireaddr.h>
3# Initialize the gossip daemon.
4gossipctl_init,3000
5gossipctl_init,,broadcast_interval,u32
6gossipctl_init,,chain_hash,struct sha256_double
7gossipctl_init,,id,struct pubkey
8# If non-zero, port to listen on.
9gossipctl_init,,port,u16
10gossipctl_init,,gflen,u16
11gossipctl_init,,gfeatures,gflen*u8
12gossipctl_init,,lflen,u16
13gossipctl_init,,lfeatures,lflen*u8
14# Master -> gossipd: Optional hint for where to find peer.
15gossipctl_peer_addrhint,3014
16gossipctl_peer_addrhint,,id,struct pubkey
17gossipctl_peer_addrhint,,addr,struct wireaddr
18# Master -> gossipd: connect to a peer. We may get a peer_connected.
19gossipctl_reach_peer,3001
20gossipctl_reach_peer,,id,struct pubkey
21# Gossipd -> master: we got a peer. Two fds: peer and gossip
22gossip_peer_connected,3002
23gossip_peer_connected,,id,struct pubkey
24gossip_peer_connected,,addr,struct wireaddr
25gossip_peer_connected,,crypto_state,struct crypto_state
26gossip_peer_connected,,gflen,u16
27gossip_peer_connected,,gfeatures,gflen*u8
28gossip_peer_connected,,lflen,u16
29gossip_peer_connected,,lfeatures,lflen*u8
30# Gossipd -> master: peer sent non-gossip packet. Two fds: peer and gossip
31gossip_peer_nongossip,3003
32gossip_peer_nongossip,,id,struct pubkey
33gossip_peer_nongossip,,addr,struct wireaddr
34gossip_peer_nongossip,,crypto_state,struct crypto_state
35gossip_peer_nongossip,,gflen,u16
36gossip_peer_nongossip,,gfeatures,gflen*u8
37gossip_peer_nongossip,,lflen,u16
38gossip_peer_nongossip,,lfeatures,lflen*u8
39gossip_peer_nongossip,,len,u16
40gossip_peer_nongossip,,msg,len*u8
41# Master -> gossipd: release a peer (so we can open a channel)
42gossipctl_release_peer,3004
43gossipctl_release_peer,,id,struct pubkey
44# Gossipd -> master: reply to gossip_release_peer. Two fds: peer and gossip.
45gossipctl_release_peer_reply,3104
46gossipctl_release_peer_reply,,addr,struct wireaddr
47gossipctl_release_peer_reply,,crypto_state,struct crypto_state
48gossipctl_release_peer_reply,,gflen,u16
49gossipctl_release_peer_reply,,gfeatures,gflen*u8
50gossipctl_release_peer_reply,,lflen,u16
51gossipctl_release_peer_reply,,lfeatures,lflen*u8
52# Gossipd -> master: reply to gossip_release_peer if we couldn't find the peer.
53gossipctl_release_peer_replyfail,3204
54# Gossipd -> master: take over peer, with optional msg. (+peer fd)
55gossipctl_handle_peer,3013
56gossipctl_handle_peer,,id,struct pubkey
57gossipctl_handle_peer,,addr,struct wireaddr
58gossipctl_handle_peer,,crypto_state,struct crypto_state
59gossipctl_handle_peer,,gflen,u16
60gossipctl_handle_peer,,gfeatures,gflen*u8
61gossipctl_handle_peer,,lflen,u16
62gossipctl_handle_peer,,lfeatures,lflen*u8
63gossipctl_handle_peer,,len,u16
64gossipctl_handle_peer,,msg,len*u8
65# Pass JSON-RPC getnodes call through
66gossip_getnodes_request,3005
67#include <lightningd/gossip_msg.h>
68gossip_getnodes_reply,3105
69gossip_getnodes_reply,,num_nodes,u16
70gossip_getnodes_reply,,nodes,num_nodes*struct gossip_getnodes_entry
71# Pass JSON-RPC getroute call through
72gossip_getroute_request,3006
73gossip_getroute_request,,source,struct pubkey
74gossip_getroute_request,,destination,struct pubkey
75gossip_getroute_request,,msatoshi,u32
76gossip_getroute_request,,riskfactor,u16
77gossip_getroute_request,,final_cltv,u32
78gossip_getroute_reply,3106
79gossip_getroute_reply,,num_hops,u16
80gossip_getroute_reply,,hops,num_hops*struct route_hop
81gossip_getchannels_request,3007
82gossip_getchannels_reply,3107
83gossip_getchannels_reply,,num_channels,u16
84gossip_getchannels_reply,,nodes,num_channels*struct gossip_getchannels_entry
85# Ping/pong test. Waits for a reply if it expects one.
86gossip_ping,3008
87gossip_ping,,id,struct pubkey
88gossip_ping,,num_pong_bytes,u16
89gossip_ping,,len,u16
90gossip_ping_reply,3108
91# False if id in gossip_ping was unknown.
92gossip_ping_reply,,sent,bool
93# 0 == no pong expected
94gossip_ping_reply,,totlen,u16
95# Given a short_channel_id, return the endpoints
96gossip_resolve_channel_request,3009
97gossip_resolve_channel_request,,channel_id,struct short_channel_id
98gossip_resolve_channel_reply,3109
99gossip_resolve_channel_reply,,num_keys,u16
100gossip_resolve_channel_reply,,keys,num_keys*struct pubkey
101# The main daemon forward some gossip message to gossipd, allows injecting
102# arbitrary gossip messages.
103gossip_forwarded_msg,3010
104gossip_forwarded_msg,,msglen,u16
105gossip_forwarded_msg,,msg,msglen*u8
106# The main daemon asks for peers
107gossip_getpeers_request,3011
108gossip_getpeers_reply,3111
109gossip_getpeers_reply,,num,u16
110gossip_getpeers_reply,,id,num*struct pubkey
111gossip_getpeers_reply,,addr,num*struct wireaddr
112# Channel daemon can ask for updates for a specific channel, for sending
113# errors. Must be distinct from WIRE_CHANNEL_ANNOUNCEMENT etc. gossip msgs!
114gossip_get_update,3012
115gossip_get_update,,short_channel_id,struct short_channel_id
116# If channel isn't known, update will be empty.
117gossip_get_update_reply,3112
118gossip_get_update_reply,,len,u16
119gossip_get_update_reply,,update,len*u8