rgb-cln/wallet
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 gossipd: provide helper to get a channels cupdate, create routine to use it. 2020-02-28 09:44:47 +10:30
.gitignore
Makefile wallet/Makefile: fix dependency line. 2019-11-28 11:50:13 +01:00
db.c wallet: Add new htlc column "localfailmsg" for outgoing htlcs. 2020-02-25 11:12:12 +10:30
db.h common: add struct onionreply 2020-01-23 16:17:42 +10:30
db_common.h db: Track the data_version in the database 2020-01-02 14:12:59 -06:00
db_postgres.c db: Implement postgres driver primitives 2019-09-22 02:03:43 +00:00
db_sqlite3.c db: Move remainder of the sqlite3 into the apropriate file 2019-09-22 02:03:43 +00:00
invoices.c wallet: add invoice features into db. 2019-11-24 23:33:17 +00:00
invoices.h wallet: add invoice features into db. 2019-11-24 23:33:17 +00:00
txfilter.c common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
txfilter.h pubkey: rename PUBKEY_DER_LEN to PUBKEY_CMPR_LEN. 2019-04-09 12:37:16 -07:00
wallet.c common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
wallet.h wallet: only store BADONION codes in db for incoming htlcs: rest are all onionreplyies. 2020-02-25 11:12:12 +10:30
walletrpc.c lightningd/bitcoind: use the Bitcoin plugin for getutxout 2020-02-12 11:45:07 +10:30
walletrpc.h