core-lightning/channeld
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
..
test common: use struct onionreply. 2020-01-23 16:17:42 +10:30
channel_wire.csv pytest: test that we handle WIRE_UPDATE_FAIL_MALFORMED_HTLC correctly. 2020-01-29 21:15:25 +01:00
channeld.c channel: make error 'hard' if awaiting lockin 2020-02-10 15:59:26 +10:30
channeld_htlc.h common: use struct onionreply. 2020-01-23 16:17:42 +10:30
commit_tx.c elements: Fix missing witness script entry for fee outputs 2020-02-08 14:26:12 +01:00
commit_tx.h channeld: remove chainparams local parameter. 2019-11-20 20:41:53 +01:00
full_channel.c channeld: channel drain mitigation. 2020-02-11 15:34:05 +01:00
full_channel.h lightningd: save the fee_states into the database. 2019-12-12 22:15:48 +01:00
full_channel_error.h channeld: map htlc add/remove errors to names. 2018-02-19 02:56:51 +00:00
Makefile common: use struct onionreply. 2020-01-23 16:17:42 +10:30