Files
palladum-lightning/gossipd/gossip_wire.csv
2019-07-24 06:31:46 +00:00

6.0 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_initchain_hashbitcoin_blkid
7msgdatagossipctl_initidnode_id
8msgdatagossipctl_initgflenu16
9msgdatagossipctl_initglobalfeaturesu8gflen
10msgdatagossipctl_initrgbu83
11msgdatagossipctl_initaliasu832
12msgdatagossipctl_initupdate_channel_intervalu32
13msgdatagossipctl_initnum_announcableu16
14msgdatagossipctl_initannouncablewireaddrnum_announcable
15msgdatagossipctl_initdev_gossip_time?u32
16# Pass JSON-RPC getnodes call through
17msgtypegossip_getnodes_request3005
18msgdatagossip_getnodes_requestid?node_id
19#include <lightningd/gossip_msg.h>
20msgtypegossip_getnodes_reply3105
21msgdatagossip_getnodes_replynum_nodesu32
22msgdatagossip_getnodes_replynodesgossip_getnodes_entrynum_nodes
23# Pass JSON-RPC getroute call through
24msgtypegossip_getroute_request3006
25msgdatagossip_getroute_requestsource?node_id
26msgdatagossip_getroute_requestdestinationnode_id
27msgdatagossip_getroute_requestmsatoshiamount_msat
28# We don't pass doublesso pass riskfactor 1000000.
29msgdatagossip_getroute_requestriskfactor_by_millionu64
30msgdatagossip_getroute_requestfinal_cltvu32
31msgdatagossip_getroute_requestfuzzdouble
32msgdatagossip_getroute_requestnum_excludedu16
33msgdatagossip_getroute_requestexcludedshort_channel_id_dirnum_excluded
34msgdatagossip_getroute_requestmax_hopsu32
35msgtypegossip_getroute_reply3106
36msgdatagossip_getroute_replynum_hopsu16
37msgdatagossip_getroute_replyhopsroute_hopnum_hops
38msgtypegossip_getchannels_request3007
39msgdatagossip_getchannels_requestshort_channel_id?short_channel_id
40msgdatagossip_getchannels_requestsource?node_id
41msgdatagossip_getchannels_requestprev?short_channel_id
42msgtypegossip_getchannels_reply3107
43msgdatagossip_getchannels_replycompletebool
44msgdatagossip_getchannels_replynum_channelsu32
45msgdatagossip_getchannels_replynodesgossip_getchannels_entrynum_channels
46# Ping/pong test. Waits for a reply if it expects one.
47msgtypegossip_ping3008
48msgdatagossip_pingidnode_id
49msgdatagossip_pingnum_pong_bytesu16
50msgdatagossip_pinglenu16
51msgtypegossip_ping_reply3108
52msgdatagossip_ping_replyidnode_id
53# False if id in gossip_ping was unknown.
54msgdatagossip_ping_replysentbool
55# 0 == no pong expected
56msgdatagossip_ping_replytotlenu16
57# Test of query_short_channel_ids. Master->gossipd
58msgtypegossip_query_scids3031
59msgdatagossip_query_scidsidnode_id
60msgdatagossip_query_scidsnum_idsu16
61msgdatagossip_query_scidsidsshort_channel_idnum_ids
62# Gossipd -> master
63msgtypegossip_scids_reply3131
64msgdatagossip_scids_replyokbool
65msgdatagossip_scids_replycompletebool
66# Test gossip timestamp filtering.
67msgtypegossip_send_timestamp_filter3028
68msgdatagossip_send_timestamp_filteridnode_id
69msgdatagossip_send_timestamp_filterfirst_timestampu32
70msgdatagossip_send_timestamp_filtertimestamp_rangeu32
71# Test of query_channel_range. Master->gossipd
72msgtypegossip_query_channel_range3029
73msgdatagossip_query_channel_rangeidnode_id
74msgdatagossip_query_channel_rangefirst_blocknumu32
75msgdatagossip_query_channel_rangenumber_of_blocksu32
76# Gossipd -> master
77msgtypegossip_query_channel_range_reply3129
78msgdatagossip_query_channel_range_replyfinal_first_blocku32
79msgdatagossip_query_channel_range_replyfinal_num_blocksu32
80msgdatagossip_query_channel_range_replyfinal_completebool
81msgdatagossip_query_channel_range_replynumu16
82msgdatagossip_query_channel_range_replyscidsshort_channel_idnum
83# Set artificial maximum reply_channel_range size. Master->gossipd
84msgtypegossip_dev_set_max_scids_encode_size3030
85msgdatagossip_dev_set_max_scids_encode_sizemaxu32
86# Given a short_channel_idreturn the other endpoint (or none if DNE)
87msgtypegossip_get_channel_peer3009
88msgdatagossip_get_channel_peerchannel_idshort_channel_id
89msgtypegossip_get_channel_peer_reply3109
90msgdatagossip_get_channel_peer_replypeer_id?node_id
91# gossipd->master: we're closing this channel.
92msgtypegossip_local_channel_close3027
93msgdatagossip_local_channel_closeshort_channel_idshort_channel_id
94# Gossipd->master get this tx output please.
95msgtypegossip_get_txout3018
96msgdatagossip_get_txoutshort_channel_idshort_channel_id
97# master->gossipd here is the outputor empty if none.
98msgtypegossip_get_txout_reply3118
99msgdatagossip_get_txout_replyshort_channel_idshort_channel_id
100msgdatagossip_get_txout_replysatoshisamount_sat
101msgdatagossip_get_txout_replylenu16
102msgdatagossip_get_txout_replyoutscriptu8len
103# master->gossipd an htlc failed with this onion error.
104msgtypegossip_payment_failure3021
105msgdatagossip_payment_failureerring_nodenode_id
106msgdatagossip_payment_failureerring_channelshort_channel_id
107msgdatagossip_payment_failureerring_channel_directionu8
108msgdatagossip_payment_failurelenu16
109msgdatagossip_payment_failureerroru8len
110# master -> gossipd: a potential funding outpoint was spentplease forget the eventual channel
111msgtypegossip_outpoint_spent3024
112msgdatagossip_outpoint_spentshort_channel_idshort_channel_id
113# master -> gossipd: stop gossip timers.
114msgtypegossip_dev_suppress3032
115# master -> gossipd: do you have a memleak?
116msgtypegossip_dev_memleak3033
117msgtypegossip_dev_memleak_reply3133
118msgdatagossip_dev_memleak_replyleakbool
119# master -> gossipd: please rewrite the gossip_store
120msgtypegossip_dev_compact_store3034
121# gossipd -> master: ok
122msgtypegossip_dev_compact_store_reply3134
123msgdatagossip_dev_compact_store_replysuccessbool
124#include <common/bolt11.h>
125# master -> gossipd: get route_info for our incoming channels
126msgtypegossip_get_incoming_channels3025
127msgdatagossip_get_incoming_channelsprivate_too?bool
128# gossipd -> master: here they are.
129msgtypegossip_get_incoming_channels_reply3125
130msgdatagossip_get_incoming_channels_replynumu16
131msgdatagossip_get_incoming_channels_replyroute_inforoute_infonum