]> git.bitcoin.ninja Git - rust-lightning/commit
Implement pending claim rebroadcast on force-closed channels
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Mon, 17 Apr 2023 21:17:53 +0000 (14:17 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Fri, 21 Apr 2023 21:34:41 +0000 (14:34 -0700)
commitdb123f74be168e6f5432fb337dbe45bd7db0bde9
treeeaa429a026bac12c5fa15acfb3fdd9e189094d11
parente496d62b98b7d7cd1800fe0dbf70684866fed7e7
Implement pending claim rebroadcast on force-closed channels

This attempts to rebroadcast/fee-bump each pending claim a monitor is
tracking for a force-closed channel. This is crucial in preventing
certain classes of pinning attacks and ensures reliability if
broadcasting fails. For implementations of `FeeEstimator` that also
support mempool fee estimation, we may broadcast a fee-bumped claim
instead, ensuring we can also react to mempool fee spikes between
blocks.
lightning/src/chain/chainmonitor.rs
lightning/src/chain/channelmonitor.rs
lightning/src/chain/onchaintx.rs
lightning/src/chain/package.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/monitor_tests.rs