core-lightning/gossipd/gossip_wire.csv
Rusty Russell dc2ee9639b listchannels: allow source arg to list channels by their source node.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-01-15 12:01:38 +01:00

5.3 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_msec,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,,num_excluded,u16
32gossip_getroute_request,,excluded,num_excluded*struct short_channel_id
33gossip_getroute_request,,excluded_dir,num_excluded*bool
34gossip_getroute_request,,max_hops,u32
35gossip_getroute_reply,3106
36gossip_getroute_reply,,num_hops,u16
37gossip_getroute_reply,,hops,num_hops*struct route_hop
38gossip_getchannels_request,3007
39gossip_getchannels_request,,short_channel_id,?struct short_channel_id
40gossip_getchannels_request,,source,?struct pubkey
41gossip_getchannels_reply,3107
42gossip_getchannels_reply,,num_channels,u16
43gossip_getchannels_reply,,nodes,num_channels*struct gossip_getchannels_entry
44# Ping/pong test. Waits for a reply if it expects one.
45gossip_ping,3008
46gossip_ping,,id,struct pubkey
47gossip_ping,,num_pong_bytes,u16
48gossip_ping,,len,u16
49gossip_ping_reply,3108
50gossip_ping_reply,,id,struct pubkey
51# False if id in gossip_ping was unknown.
52gossip_ping_reply,,sent,bool
53# 0 == no pong expected
54gossip_ping_reply,,totlen,u16
55# Test of query_short_channel_ids. Master->gossipd
56gossip_query_scids,3031
57gossip_query_scids,,id,struct pubkey
58gossip_query_scids,,num_ids,u16
59gossip_query_scids,,ids,num_ids*struct short_channel_id
60# Gossipd -> master
61gossip_scids_reply,3131
62gossip_scids_reply,,ok,bool
63gossip_scids_reply,,complete,bool
64# Test gossip timestamp filtering.
65gossip_send_timestamp_filter,3028
66gossip_send_timestamp_filter,,id,struct pubkey
67gossip_send_timestamp_filter,,first_timestamp,u32
68gossip_send_timestamp_filter,,timestamp_range,u32
69# Test of query_channel_range. Master->gossipd
70gossip_query_channel_range,3029
71gossip_query_channel_range,,id,struct pubkey
72gossip_query_channel_range,,first_blocknum,u32
73gossip_query_channel_range,,number_of_blocks,u32
74# Gossipd -> master
75gossip_query_channel_range_reply,3129
76gossip_query_channel_range_reply,,final_first_block,u32
77gossip_query_channel_range_reply,,final_num_blocks,u32
78gossip_query_channel_range_reply,,final_complete,bool
79gossip_query_channel_range_reply,,num,u16
80gossip_query_channel_range_reply,,scids,num*struct short_channel_id
81# Set artificial maximum reply_channel_range size. Master->gossipd
82gossip_dev_set_max_scids_encode_size,3030
83gossip_dev_set_max_scids_encode_size,,max,u32
84# Given a short_channel_id, return the other endpoint (or none if DNE)
85gossip_get_channel_peer,3009
86gossip_get_channel_peer,,channel_id,struct short_channel_id
87gossip_get_channel_peer_reply,3109
88gossip_get_channel_peer_reply,,peer_id,?struct pubkey
89# gossipd->master: we're closing this channel.
90gossip_local_channel_close,3027
91gossip_local_channel_close,,short_channel_id,struct short_channel_id
92# Gossipd->master get this tx output please.
93gossip_get_txout,3018
94gossip_get_txout,,short_channel_id,struct short_channel_id
95# master->gossipd here is the output, or empty if none.
96gossip_get_txout_reply,3118
97gossip_get_txout_reply,,short_channel_id,struct short_channel_id
98gossip_get_txout_reply,,satoshis,u64
99gossip_get_txout_reply,,len,u16
100gossip_get_txout_reply,,outscript,len*u8
101# master->gossipd a routing failure occurred
102gossip_routing_failure,3021
103gossip_routing_failure,,erring_node,struct pubkey
104gossip_routing_failure,,erring_channel,struct short_channel_id
105gossip_routing_failure,,failcode,u16
106gossip_routing_failure,,len,u16
107gossip_routing_failure,,channel_update,len*u8
108# master->gossipd temporarily mark a channel unroutable
109# (used in case of unparseable onion reply)
110gossip_mark_channel_unroutable,3022
111gossip_mark_channel_unroutable,,channel,struct short_channel_id
112# master -> gossipd: a potential funding outpoint was spent, please forget the eventual channel
113gossip_outpoint_spent,3024
114gossip_outpoint_spent,,short_channel_id,struct short_channel_id
115# master -> gossipd: stop gossip timers.
116gossip_dev_suppress,3032
117# master -> gossipd: do you have a memleak?
118gossip_dev_memleak,3033
119gossip_dev_memleak_reply,3133
120gossip_dev_memleak_reply,,leak,bool
121#include <common/bolt11.h>
122# master -> gossipd: get route_info for our incoming channels
123gossip_get_incoming_channels,3025
124gossip_get_incoming_channels,,private_too,?bool
125# gossipd -> master: here they are.
126gossip_get_incoming_channels_reply,3125
127gossip_get_incoming_channels_reply,,num,u16
128gossip_get_incoming_channels_reply,,route_info,num*struct route_info