core-lightning/gossipd/gossipd_wire.csv
Rusty Russell 9d57612415 gossipd, channeld: handle onion messages in gossipd so we don't need a channel.
The previous onion_message code required a confirmed, not-shutting-down
channel, not just a connection.  That's overkill; plus before widespread
adoption we will want to connect directly as a last resort.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-01-09 14:34:35 +10:30

6.3 KiB

1#include <common/cryptomsg.h>
2#include <common/features.h>
3#include <common/wireaddr.h>
4#include <wire/onion_wire.h>
5# Initialize the gossip daemon.
6# Pass JSON-RPC getnodes call through
7#include <lightningd/gossip_msg.h>
8# Pass JSON-RPC getroute call through
9# Ping/pong test. Waits for a reply if it expects one.
10# False if id in gossip_ping was unknown.
11# 0 == no pong expected
12# Set artificial maximum reply_channel_range size. Master->gossipd
13# gossipd->master: we're closing this channel.
14# Gossipd->master get this tx output please.
15# master->gossipd an htlc failed with this onion error.
16# master -> gossipd: stop gossip timers.
17# master -> gossipd: do you have a memleak?
18# master -> gossipd: please rewrite the gossip_store
19# gossipd -> master: ok
20#include <common/bolt11.h>
21# master -> gossipd: get route_info for our incoming channels
22# gossipd -> master: here they are.
23# master -> gossipd: blockheight increased.
24# Lightningd tells us to send a onion message.