#include #include #include # Initialize the gossip daemon. gossipctl_init,3000 gossipctl_init,,broadcast_interval,u32 gossipctl_init,,chain_hash,struct bitcoin_blkid gossipctl_init,,id,struct pubkey gossipctl_init,,gflen,u16 gossipctl_init,,gfeatures,gflen*u8 gossipctl_init,,rgb,3*u8 gossipctl_init,,alias,32*u8 gossipctl_init,,update_channel_interval,u32 gossipctl_init,,num_announcable,u16 gossipctl_init,,announcable,num_announcable*struct wireaddr # Pass JSON-RPC getnodes call through gossip_getnodes_request,3005 gossip_getnodes_request,,id,?struct pubkey #include gossip_getnodes_reply,3105 gossip_getnodes_reply,,num_nodes,u16 gossip_getnodes_reply,,nodes,num_nodes*struct gossip_getnodes_entry # Pass JSON-RPC getroute call through gossip_getroute_request,3006 gossip_getroute_request,,source,struct pubkey gossip_getroute_request,,destination,struct pubkey gossip_getroute_request,,msatoshi,u64 gossip_getroute_request,,riskfactor,u16 gossip_getroute_request,,final_cltv,u32 gossip_getroute_request,,fuzz,double gossip_getroute_request,,seed,struct siphash_seed gossip_getroute_reply,3106 gossip_getroute_reply,,num_hops,u16 gossip_getroute_reply,,hops,num_hops*struct route_hop gossip_getchannels_request,3007 gossip_getchannels_request,,short_channel_id,?struct short_channel_id gossip_getchannels_reply,3107 gossip_getchannels_reply,,num_channels,u16 gossip_getchannels_reply,,nodes,num_channels*struct gossip_getchannels_entry # Ping/pong test. Waits for a reply if it expects one. gossip_ping,3008 gossip_ping,,id,struct pubkey gossip_ping,,num_pong_bytes,u16 gossip_ping,,len,u16 gossip_ping_reply,3108 # False if id in gossip_ping was unknown. gossip_ping_reply,,sent,bool # 0 == no pong expected gossip_ping_reply,,totlen,u16 # Test of query_short_channel_ids. Master->gossipd gossip_query_scids,3031 gossip_query_scids,,id,struct pubkey gossip_query_scids,,num_ids,u16 gossip_query_scids,,ids,num_ids*struct short_channel_id # Gossipd -> master gossip_scids_reply,3131 gossip_scids_reply,,ok,bool gossip_scids_reply,,complete,bool # Test gossip timestamp filtering. gossip_send_timestamp_filter,3028 gossip_send_timestamp_filter,,id,struct pubkey gossip_send_timestamp_filter,,first_timestamp,u32 gossip_send_timestamp_filter,,timestamp_range,u32 # Test of query_channel_range. Master->gossipd gossip_query_channel_range,3029 gossip_query_channel_range,,id,struct pubkey gossip_query_channel_range,,first_blocknum,u32 gossip_query_channel_range,,number_of_blocks,u32 # Gossipd -> master gossip_query_channel_range_reply,3129 gossip_query_channel_range_reply,,final_first_block,u32 gossip_query_channel_range_reply,,final_num_blocks,u32 gossip_query_channel_range_reply,,final_complete,bool gossip_query_channel_range_reply,,num,u16 gossip_query_channel_range_reply,,scids,num*struct short_channel_id # Set artificial maximum reply_channel_range size. Master->gossipd gossip_dev_set_max_scids_encode_size,3030 gossip_dev_set_max_scids_encode_size,,max,u32 # Given a short_channel_id, return the endpoints gossip_resolve_channel_request,3009 gossip_resolve_channel_request,,channel_id,struct short_channel_id gossip_resolve_channel_reply,3109 gossip_resolve_channel_reply,,num_keys,u16 gossip_resolve_channel_reply,,keys,num_keys*struct pubkey # Channel daemon can ask for updates for a specific channel, for sending # errors. Must be distinct from WIRE_CHANNEL_ANNOUNCEMENT etc. gossip msgs! gossip_get_update,3012 gossip_get_update,,short_channel_id,struct short_channel_id # If channel isn't known, update will be empty. gossip_get_update_reply,3112 gossip_get_update_reply,,len,u16 gossip_get_update_reply,,update,len*u8 # Gossipd can tell channeld etc about gossip to fwd. gossip_send_gossip,3016 gossip_send_gossip,,len,u16 gossip_send_gossip,,gossip,len*u8 # Both sides have seen the funding tx being locked, but we have not # yet reached the announcement depth. So we add the channel locally so # we (and peer) can update it already. gossip_local_add_channel,3017 gossip_local_add_channel,,short_channel_id,struct short_channel_id gossip_local_add_channel,,remote_node_id,struct pubkey gossip_local_add_channel,,satoshis,u64 gossip_local_channel_update,3026 gossip_local_channel_update,,short_channel_id,struct short_channel_id gossip_local_channel_update,,disable,bool gossip_local_channel_update,,cltv_expiry_delta,u16 gossip_local_channel_update,,htlc_minimum_msat,u64 gossip_local_channel_update,,fee_base_msat,u32 gossip_local_channel_update,,fee_proportional_millionths,u32 gossip_local_channel_close,3027 gossip_local_channel_close,,short_channel_id,struct short_channel_id # Gossipd->master get this tx output please. gossip_get_txout,3018 gossip_get_txout,,short_channel_id,struct short_channel_id # master->gossipd here is the output, or empty if none. gossip_get_txout_reply,3118 gossip_get_txout_reply,,short_channel_id,struct short_channel_id gossip_get_txout_reply,,satoshis,u64 gossip_get_txout_reply,,len,u16 gossip_get_txout_reply,,outscript,len*u8 # master->gossipd a routing failure occurred gossip_routing_failure,3021 gossip_routing_failure,,erring_node,struct pubkey gossip_routing_failure,,erring_channel,struct short_channel_id gossip_routing_failure,,failcode,u16 gossip_routing_failure,,len,u16 gossip_routing_failure,,channel_update,len*u8 # master->gossipd temporarily mark a channel unroutable # (used in case of unparseable onion reply) gossip_mark_channel_unroutable,3022 gossip_mark_channel_unroutable,,channel,struct short_channel_id # master -> gossipd: a potential funding outpoint was spent, please forget the eventual channel gossip_outpoint_spent,3024 gossip_outpoint_spent,,short_channel_id,struct short_channel_id # master -> gossipd: stop gossip timers. gossip_dev_suppress,3032