cln/tests
Rusty Russell 706debf3d4 pytest: make test_pay_direct more effective.
The test sometimes passes: our routing logic always chooses between
the shorter of two equal-cost routes (because we compare best with <
not <=).

By adding another hop, we add more noise, and by making the alternate
route fee 0 we provide the worst case.

But to be fair, we make the amount of the payment ~50c (15,000,000
msat), and increase our cltv-delay to 14 and fee-base 1000 to match
mainnet.  The final patch shows the effect of this choice.

Otherwise our risk penalty is completely in the noise on
mainnet which has the vast majority of fees set at 1000msat + 1ppm.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-02-06 18:39:52 +01:00
..
benchmark.py py-tests: rename 'announce' to 'wait_for_announce' 2018-12-08 15:15:55 -08:00
btcproxy.py pytest: create proper mock failures. 2019-01-29 04:50:01 +00:00
conftest.py pytest: Pass result to fixtures and keep directories of failed tests 2018-08-07 00:54:19 +00:00
fixtures.py pytest: Have bitcoind own its proxies 2019-01-29 00:50:09 +00:00
requirements.txt pytest: Update test dependencies to latest version 2019-01-29 00:50:09 +00:00
test_closing.py misc: Update short_channel_id representation to use 'x' separators 2019-01-15 03:50:27 +00:00
test_connection.py openingd/json_fund_channel: 2019-01-29 04:50:01 +00:00
test_gossip.py gossipd: handle overflowing query properly (avoid slow 100% CPU reports) 2019-01-15 11:34:45 -08:00
test_invoices.py invoice: don't allow creation of unpayable invoices. 2019-01-31 15:30:12 +01:00
test_misc.py plugins/pay: add paystatus command to get gory details of payments. 2019-01-17 13:02:24 +01:00
test_pay.py pytest: make test_pay_direct more effective. 2019-02-06 18:39:52 +01:00
test_plugin.py libplugin: quick fix for bad JSON produced by plugins on bad paramters. 2019-01-21 11:20:11 +01:00
utils.py pytest: Have bitcoind own its proxies 2019-01-29 00:50:09 +00:00