core-lightning/wallet/test
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
..
.gitignore wallet: move tests into test/ dir like other unit tests. 2017-12-13 22:46:10 +01:00
Makefile common: use struct onionreply. 2020-01-23 16:17:42 +10:30
run-db.c db: Track the data_version in the database 2020-01-02 14:12:59 -06:00
run-wallet.c gossipd: provide helper to get a channels cupdate, create routine to use it. 2020-02-28 09:44:47 +10:30
test_utils.c Add enable-autotor-v2 config variable 2019-09-28 00:31:02 +02:00
test_utils.h fix: a pr2444 introduced valgrind complaint 2019-03-14 16:51:18 +01:00