core-lightning/tests
Vasil Dimov 66eca2ff3f lightningd: always broadcast the latest close tx
Before this patch we would only update `channel->last_tx` with the newly
proposed closure tx from the peer if the fee of the new one was lower.

In negotiations where we are at the higher end and the peer starts
lower, all peer's subsequent proposals will be higher than his initial
proposal and in this case we would never update `channel->last_tx`
and would wrongly broadcast his initial proposal at the end of the
negotiation.

Fixes https://github.com/ElementsProject/lightning/issues/3549

Changelog-Fixed: Always broadcast the latest close transaction at the end of the close fee negotiation, instead of sometimes broadcasting the peer's initial closing proposal.
2020-03-10 11:40:19 +10:30
..
data pytest: test db upgrade. 2019-09-06 14:19:14 +02:00
plugins plugin: Actually wait the 20 seconds promised in the docs 2020-02-27 09:21:44 +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 lightningd: always broadcast the latest close tx 2020-03-10 11:40:19 +10:30
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/hsm_control.c: Implement getsharedsecret. 2020-02-28 14:45:50 +10:30
test_pay.py htlc: Return an invalid payload error if payload is invalid 2020-03-04 22:57:24 +01:00
test_plugin.py tests: fix flake in libplugin test. 2020-03-04 16:42:34 +01:00
test_wallet.py txprepare: don't crash if we are passed unconfirmed utxos 2020-02-21 17:52:02 +01:00
utils.py Protocol: make var_onion, payment_secret and basic_mpp non-EXPERIMENTAL. 2019-12-12 22:16:03 +01:00