core-lightning/gossipd/gossip_wire.csv
Rusty Russell f8a21f16c9 lightingd: do a local short_channel_id lookup for forwarding.
Even without optimization, it's faster to walk all the channels than
ping another daemon and wait for the response.

Changelog-Changed: Forwarding messages is now much faster (less inter-daemon traffic)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-02-28 09:44:47 +10:30

5.5 KiB

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