core-lightning/tests
Rusty Russell 978c1699ea lightningd: fail incoming HTLCs if peer would close channel.
This cause of cascading failure was pointed out by @t-bast: if fees spike and
you don't timeout an outgoing onchain HTLC, you should nonetheless fail the incoming htlc
because otherwise the incoming peer will close on you.

Of course, there's a risk of losing funds, but this only happens if you weren't going to get the HTLC spend in time anyway.  And it would also catch any other reason that the downstream onchain goes wrong, containing the damage.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Reported-by: @t-bast
Changelog-Fixed: Protocol: We will close incoming HTLCs early if the outgoing HTLC is stuck onchain long enough, to avoid cascating failure.
2023-07-26 06:58:38 +09:30
..
data lightningd: migrate (and delete) old commando blacklists. 2023-07-25 14:47:12 +09:30
fuzz fuzz: initial sha256 seeds 2023-07-10 14:56:50 +09:30
plugins pytest: test for bad estimatefees results. 2023-07-16 12:57:27 +09:30
vectors pytest: Remove onion test vectors containing legacy onions. 2022-03-18 09:20:11 +10:30
benchmark.py pytest: always provide payment_secret when making payments. 2021-07-14 14:38:00 -05:00
conftest.py tests: add marker for v1/v2 channel opens 2021-05-12 11:25:41 +09:30
db.py test-db-provider: if postgres in tests, startup a bookkeeper db 2022-07-28 12:08:18 +09:30
fixtures.py pyln.testing: remove Throttler. 2023-04-06 09:10:53 +09:30
rkls_github_canned_server.py pytest: add blackbox tests for reckless 2023-04-09 12:41:11 +09:30
test_bookkeeper.py Support p2tr deposit addresses 2023-07-11 11:41:15 +09:30
test_cln_rs.py pyln: Create a dedicated pyln-grpc-proto package 2023-07-10 13:47:38 +09:30
test_closing.py lightningd: fail incoming HTLCs if peer would close channel. 2023-07-26 06:58:38 +09:30
test_connection.py pytest: test for setchannel's new ignorefeelimits. 2023-07-22 13:11:08 +09:30
test_db.py wallet: fix up PSBTs as a migration. 2023-03-31 09:16:25 +10:30
test_gossip.py pytest: make tor-requiring tests clearly distinguishable 2023-07-22 11:08:04 +09:30
test_invoices.py lightningd: expose created_index and updated_index fields. 2023-07-23 13:48:37 +09:30
test_misc.py channeld: Verify the signature sent by the counterparty 2023-07-26 06:57:15 +09:30
test_mkfunding.py pytest: add tests for devtools/mkfunding 2023-01-09 14:50:30 -06:00
test_onion.py lightningd: remove support for legacy onion format. 2022-03-18 09:20:11 +10:30
test_opening.py pytest: fix test_anchor_min_emergency "bad gossip" messages. 2023-07-22 08:52:55 +09:30
test_pay.py libplugin/pay: allow shortcut for self-pay. 2023-07-26 06:55:48 +09:30
test_plugin.py invoice: return error string from invoice_check_payment. 2023-07-26 06:55:48 +09:30
test_reckless.py pytest: ignore pip warning 2023-04-24 13:08:15 -07:00
test_runes.py lightningd: clean up commando rune_counter from datastore on migration. 2023-07-25 14:47:12 +09:30
test_wallet.py Support p2tr deposit addresses 2023-07-11 11:41:15 +09:30
utils.py Support p2tr deposit addresses 2023-07-11 11:41:15 +09:30
valgrind-suppressions.txt pytest: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30