]> git.bitcoin.ninja Git - rust-lightning/commit
Handle duplicate payment claims during initialization
authorMatt Corallo <git@bluematt.me>
Sun, 15 Sep 2024 23:27:35 +0000 (23:27 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 24 Oct 2024 17:44:33 +0000 (17:44 +0000)
commit254b78fd3553c977a00f9b81cf829e81427b0a04
tree8fccb5e60a7af475545b92cf2144cd3086bd0919
parent17cf179e75e00aca6f89e81f6c88c922084864e2
Handle duplicate payment claims during initialization

In the next commit we'll start using (much of) the normal HTLC
claim pipeline to replay payment claims on startup. In order to do
so, however, we have to properly handle cases where we get a
`DuplicateClaim` back from the channel for an inbound-payment HTLC.

Here we do so, handling the `MonitorUpdateCompletionAction` and
allowing an already-completed RAA blocker.
lightning/src/ln/channelmanager.rs