core-lightning/lightningd/test
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
..
Makefile json-invoice: add routeboost, warnings. 2018-09-28 15:03:42 +02:00
run-commit_tx.c Remove tal_len, use tal_count() or tal_bytelen(). 2018-07-30 11:31:17 +02:00
run-find_my_abspath.c lightningd: minor cleanups 2018-09-03 05:01:40 +00:00
run-funding_tx.c lightningd: fix up BOLT references. 2018-06-18 12:31:09 +02:00
run-invoice-select-inchan.c json-invoice: add routeboost, warnings. 2018-09-28 15:03:42 +02:00
run-key_derive.c Force the use of the POSIX C locale for all commands and their subprocesses 2018-04-27 14:02:59 +02:00
run-param.c param: call param() all the time 2018-09-25 15:11:45 +02:00