Change return value of `claim_funds` to ignore duplicate claims 2021-07-forward-event
authorMatt Corallo <git@bluematt.me>
Tue, 3 Aug 2021 16:49:31 +0000 (16:49 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 4 Aug 2021 21:48:21 +0000 (21:48 +0000)
commit50f47ecc05b5ade369872a8b3580301bdd977a83
tree4f46a7da57bcc9235e7b28027d07a783c4ddff28
parent2024c5e1049ef399fb24e5c466924f980e949c69
Change return value of `claim_funds` to ignore duplicate claims

While we should never reach `ClaimFundsFromHop::DuplicateClaim` in
most cases, if we do, it likely indicates the HTLC was timed out
some time ago and is no longer available to be claimed. Thus, it
does not make sense to imply that we `claimed_any_htlcs`.
lightning/src/ln/channelmanager.rs