You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

8.4 KiB

1#include <common/cryptomsg.h>
2#include <common/wireaddr.h>
3#include <wire/gen_onion_wire.h>
4# Initialize the gossip daemon.
5# Master -> gossipd: Optional hint for where to find peer.
6# Master -> gossipd: connect to a peer. We may get a peer_connected or
7# peer_already_connected
8# Master -> gossipd: try to always maintain connection to this peer (or not)
9# Gossipd -> master: we got a peer. Two fds: peer and gossip
10# Gossipd -> master: peer sent non-gossip packet. Two fds: peer and gossip
11# Master -> gossipd: release a peer (so we can open a channel)
12# Gossipd -> master: reply to gossip_release_peer. Two fds: peer and gossip.
13# Gossipd -> master: reply to gossip_release_peer if we couldn't find the peer.
14# Pass JSON-RPC getnodes call through
15# Can be 0 or 1 currently
16#include <lightningd/gossip_msg.h>
17# Pass JSON-RPC getroute call through
18# Ping/pong test. Waits for a reply if it expects one.
19# False if id in gossip_ping was unknown.
20# 0 == no pong expected
21# The main daemon asks for peers
22# 0 or 1
23# errors. Must be distinct from WIRE_CHANNEL_ANNOUNCEMENT etc. gossip msgs!
24# Gossipd can tell channeld etc about gossip to fwd.
25# yet reached the announcement depth. So we add the channel locally so
26# we can use it already.
27# Gossipd->master get this tx output please.
28# client->gossipd: Disable the channel matching the short_channel_id
29# master->gossipd a routing failure occurred
30# master->gossipd temporarily mark a channel unroutable
31# (used in case of unparseable onion reply)
32# master->gossipd: Request to disconnect from a peer.
33# Gossipd -> master: reply to gossip_peer_disconnect with peer id.
34# Gossipd -> master: reply to gossip_peer_disconnect if we couldn't find the peer.