core-lightning/tests
Rusty Russell 86c28b2272 channeld: channel drain mitigation.
Add new check if we're funder trying to add HTLC, keeping us
with enough extra funds to pay for another HTLC the peer might add.

We also need to adjust the spendable_msat calculation, and update
various tests which try to unbalance channels.  We eliminate
the now-redundant test_channel_drainage entirely.

Changelog-Fixed: Corner case where channel could become unusable (https://github.com/lightningnetwork/lightning-rfc/issues/728)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-02-11 15:34:05 +01:00
..
data pytest: test db upgrade. 2019-09-06 14:19:14 +02:00
plugins plugin: Allow multiple plugins to register the htlc_accepted hook 2020-02-11 15:57:22 +10:30
benchmark.py py-tests: rename 'announce' to 'wait_for_announce' 2018-12-08 15:15:55 -08:00
conftest.py pytest: Pass result to fixtures and keep directories of failed tests 2018-08-07 00:54:19 +00:00
db.py pytest: Have the DB provider search for the postgres binary 2019-09-22 02:03:43 +00:00
fixtures.py pyln: Allow users to override the LightningNode class 2019-11-12 21:23:55 +01:00
requirements.txt fix: pip dependency version for psycopg2-binary 2019-12-19 13:26:13 +01:00
test_closing.py pytest: use pyln.client for functional tests 2020-01-21 22:38:14 +01:00
test_connection.py channeld: channel drain mitigation. 2020-02-11 15:34:05 +01:00
test_db.py pytest: Fix optimistic locking in valgrind - developer config 2020-01-13 08:55:32 +08:00
test_gossip.py pytest: use pyln.client for functional tests 2020-01-21 22:38:14 +01:00
test_invoices.py channeld: channel drain mitigation. 2020-02-11 15:34:05 +01:00
test_misc.py lightningd: fix handling of WIRE_UPDATE_FAIL_MALFORMED_HTLC. 2020-01-29 21:15:25 +01:00
test_pay.py channeld: channel drain mitigation. 2020-02-11 15:34:05 +01:00
test_plugin.py plugin: Allow multiple plugins to register the htlc_accepted hook 2020-02-11 15:57:22 +10:30
test_wallet.py pytest: test withdrawal transactions' nLockTime 2020-02-03 00:45:27 +00:00
utils.py Protocol: make var_onion, payment_secret and basic_mpp non-EXPERIMENTAL. 2019-12-12 22:16:03 +01:00