core-lightning/gossipd
Rusty Russell 247d249ea8 gossipd: provide helper to get a channels cupdate, create routine to use it.
The idea is that gossipd can give us the cupdate we need for an error, and
we wire things up so that we ask for it (async) just before we send the
error to the subdaemon.

I tried many other things, but they were all too high-risk.

1. We need to ask gossipd every time, since it produces these lazily
   (in particular, it doesn't actually generate an offline update unless
   the channel is used).
2. We can't do async calls in random places, since we'll end up with
   an HTLC in limbo.  What if another path tries to fail it at the same time?
3. This allows us to use a temporary_node_failure error, and upgrade it
   when gossipd replies.  This doesn't change any existing assumptions.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-02-28 09:44:47 +10:30
..
test common/wireaddr: don't include lightningd/lightningd. 2020-02-27 14:16:16 +10:30
broadcast.h gossipd: remove broadcast map altogether. 2019-06-04 01:29:39 +00:00
gossip_generation.c common/wireaddr: don't include lightningd/lightningd. 2020-02-27 14:16:16 +10:30
gossip_generation.h gossipd: naming cleanups. 2019-09-20 06:55:00 +00:00
gossip_peerd_wire.csv gossipd: push our own gossip messages harder. 2019-10-14 15:00:37 -05:00
gossip_store.c connectd, gossipd: use per-peer logging. 2019-11-18 04:50:22 +00:00
gossip_store.csv wire-gen: move in-house wire delcarations to new format 2019-07-24 06:31:46 +00:00
gossip_store.h gossipd: set the push marker for our own messages. 2019-11-04 17:50:58 +01:00
gossip_wire.csv gossipd: provide helper to get a channels cupdate, create routine to use it. 2020-02-28 09:44:47 +10:30
gossipd.c gossipd: provide helper to get a channels cupdate, create routine to use it. 2020-02-28 09:44:47 +10:30
gossipd.h gossipd: remove chainparams local var. 2019-11-20 20:41:53 +01:00
Makefile common: use struct onionreply. 2020-01-23 16:17:42 +10:30
queries.c gossipd: remove chainparams local var. 2019-11-20 20:41:53 +01:00
queries.h gossipd: hand (any) timestamps through to callback for query_channel_range. 2019-10-10 21:48:52 -05:00
routing.c common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
routing.h gossipd: remove chainparams local var. 2019-11-20 20:41:53 +01:00
seeker.c gossipd: don't crash if we have > 7000 stale short_channel_ids. 2019-11-21 04:21:38 +00:00
seeker.h gossipd: restore dev-suppress-gossip functionality. 2019-10-10 21:48:52 -05:00