core-lightning/channeld
Christian Decker 24ec17126c channeld: Adjust the feerate security margin profile
The feerate security margin is a multiplicative factor applied to the
feerate of some transactions in order to guarantee that the
transaction remains publishable and has a sufficient chance of being
confirmed, that we can base some of our decisions on that.

The multiplicative factor is >=1 and was so far a constant 2. This
might have been sensible in the low-fee environment, where the fees
are expected to oscillate, and almost guaranteeing that we will
eventually have rising feerates but in high-fee environments that is
no longer the case, and the 100% margin that the multiplicator 2
brings is excessive. We therefore opt to start out with 100%, then
linearly interpolate up to a given maxfeerate (which does not have to
be a real feerate ever reached, it just indicates the feerate after
which we apply the constant 10% margin.

Fixes #6974
Closes #6976
[Fixed up all the other changes required, including spendable calcualtion
 comments and unit test and pytest tests --RR]
2024-05-13 14:06:45 -05:00
..
test channeld: Adjust the feerate security margin profile 2024-05-13 14:06:45 -05:00
channeld_htlc.h channeld: remove dead HTLCs from htable and free them (eventually) 2023-01-20 14:04:08 -06:00
channeld_wire.csv lightningd: Add tx_abort routine to lightningd 2024-02-11 10:46:23 +01:00
channeld.c global: remove tags from BOLT quotes now dual-funding is in master 2024-05-09 16:14:23 -05:00
channeld.h channeld: simply exit if hsmd vanishes. 2022-02-08 11:15:52 +10:30
commit_tx.c global: change all type_to_string to fmt_X. 2024-03-20 13:51:48 +10:30
commit_tx.h channeld: have commit_tx tell is what output was the other's anchor. 2023-10-27 11:19:56 +10:30
full_channel_error.h dusty-htlcs: enforce limit on dusty htlcs 2021-10-23 12:59:13 +02:00
full_channel.c channeld: Adjust the feerate security margin profile 2024-05-13 14:06:45 -05:00
full_channel.h channeld: tell lightningd about local anchor for each commitment tx. 2023-10-27 11:19:56 +10:30
inflight.c splice: Reestablish when commit or sig sends fail 2023-11-20 07:35:22 +01:00
inflight.h splice: Reestablish when commit or sig sends fail 2023-11-20 07:35:22 +01:00
Makefile common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
splice.c splice: Add support for out-of-bound tx_sig 2024-02-11 10:46:23 +01:00
splice.h splice: Add support for out-of-bound tx_sig 2024-02-11 10:46:23 +01:00
watchtower.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
watchtower.h hsmd: Add wallet index metadata to existing messages 2022-03-10 10:22:29 +10:30