Correct payment resolution after on chain failure of dust HTLCs 2022-08-dust-retry
authorMatt Corallo <git@bluematt.me>
Fri, 2 Sep 2022 21:10:43 +0000 (21:10 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 6 Sep 2022 20:23:18 +0000 (20:23 +0000)
commita795e45b429ba2ef6a1a335b60804025b05c1245
tree1db0ec6ffc547b9f843e2df72d7a8808faf916e6
parentc8ae6c1923ab89c22f708c3bcfa235866839a51f
Correct payment resolution after on chain failure of dust HTLCs

Previously, we wouldn't mark a dust HTLC as permanently resolved if
the commitment transaction went on chain. This resulted in us
always considering the HTLC as pending on restart, when we load the
pending payments set from the monitors.

Fixes #1653.
lightning/src/chain/channelmonitor.rs
lightning/src/ln/payment_tests.rs