rgb-cln/channeld
Christian Decker 48c6551734 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
2024-02-11 11:14:34 +01:00
..
test channeld: tell lightningd about local anchor for each commitment tx. 2023-10-27 11:19:56 +10:30
Makefile common: remote private_channel_announcement.[ch]. 2024-01-31 14:47:33 +10:30
channeld.c channeld: use explicit revoke on retry when HSM_VERSION >= 5 2024-02-01 14:38:58 +10:30
channeld.h channeld: simply exit if hsmd vanishes. 2022-02-08 11:15:52 +10:30
channeld_htlc.h channeld: remove dead HTLCs from htable and free them (eventually) 2023-01-20 14:04:08 -06:00
channeld_wire.csv channeld: notify lightningd once we've exchanged reestablish messages. 2024-01-31 14:47:33 +10:30
commit_tx.c channeld: have commit_tx tell is what output was the other's anchor. 2023-10-27 11:19:56 +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.c channeld: Adjust the feerate security margin profile 2024-02-11 11:14:34 +01:00
full_channel.h channeld: tell lightningd about local anchor for each commitment tx. 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
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
splice.c splice: Reestablish when commit or sig sends fail 2023-11-20 07:35:22 +01:00
splice.h splice: Reestablish when commit or sig sends fail 2023-11-20 07:35:22 +01:00
watchtower.c Support p2tr deposit addresses 2023-07-11 11:41:15 +09:30
watchtower.h hsmd: Add wallet index metadata to existing messages 2022-03-10 10:22:29 +10:30