]> git.bitcoin.ninja Git - rust-lightning/commit
Split `ConfirmationTarget::OnChainSweep` into urgent and non-urgent
authorMatt Corallo <git@bluematt.me>
Thu, 22 Aug 2024 19:15:34 +0000 (19:15 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 27 Aug 2024 16:42:03 +0000 (16:42 +0000)
commit14720190b05c81283e22b32f9d95b11f08f393e5
tree94c471d47abbf8c12c8847e09183c5963a021e28
parentf0de37ae1fb43587015959bb31961fe5a7f4d173
Split `ConfirmationTarget::OnChainSweep` into urgent and non-urgent

When we force-close a channel, occasionally its due to feerate
disagreements or other non-HTLC-related issues. In those cases,
there's no reason to use a very urgent feerate estimate - we don't
have any timers expiring soon.

Instead, we should give users the information they need to be more
economical on fees in this case, which we do here by splitting
`OnChainSweep` into `UrgentOnChainSweep` and
`NonUrgentOnChainSweep` `ConfirmationTarget`s.
fuzz/src/chanmon_consistency.rs
lightning/src/chain/chaininterface.rs
lightning/src/chain/channelmonitor.rs
lightning/src/chain/onchaintx.rs
lightning/src/chain/package.rs