core-lightning/wallet
Rusty Russell c8c3294a23 json-invoice: add routeboost, warnings.
We split json_invoice(), as it now needs to round-trip to the gossipd,
and uniqueness checks need to happen *after* gossipd replies to avoid
a race.

For every candidate channel gossipd gives us, we check that it's in
state NORMAL (not shutting down, not still waiting for lockin), that
it's connected, and that it has capacity.  We then choose one with
probability weighted by excess capacity, so larger channels are more
likely.

As a side effect of this, we can tell if an invoice is unpayble (no
channels have sufficient incoming capacity) or difficuly (no *online*
channels have sufficient capacity), so we add those warnings.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-09-28 15:03:42 +02:00
..
test listpeers: include current htlc information. 2018-09-27 22:57:19 +02:00
.gitignore wallet: Create and manage a sqlite3 database for the wallet 2017-06-06 09:16:10 +09:30
db.c common/utils.h: add tal_arr_expand helper. 2018-09-27 22:57:19 +02:00
db.h db: full location tags for callers, make it implicit. 2018-04-27 16:20:35 +02:00
invoices.c wallet: do wallet_invoice init during preparation. 2018-09-03 05:01:40 +00:00
invoices.h wallet: do wallet_invoice init during preparation. 2018-09-03 05:01:40 +00:00
Makefile wallet: fix Makefile to include correct dependencies. 2018-09-14 22:11:48 +02:00
txfilter.c common/utils.h: add tal_arr_expand helper. 2018-09-27 22:57:19 +02:00
txfilter.h Use expected LIGHTNING_DIR_FILE_H define 2018-03-25 23:54:21 +00:00
wallet.c common/utils.h: add tal_arr_expand helper. 2018-09-27 22:57:19 +02:00
wallet.h json-invoice: add routeboost, warnings. 2018-09-28 15:03:42 +02:00
walletrpc.c param: call param() all the time 2018-09-25 15:11:45 +02:00
walletrpc.h Use expected LIGHTNING_DIR_FILE_H define 2018-03-25 23:54:21 +00:00