]> git.bitcoin.ninja Git - rust-lightning/commitdiff
f update comment
authorMatt Corallo <git@bluematt.me>
Thu, 3 Oct 2024 20:42:38 +0000 (20:42 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 3 Oct 2024 20:44:54 +0000 (20:44 +0000)
lightning/src/chain/onchaintx.rs

index 39801638bb2de3a34b0c9182111e91d63599f5bc..4924544d9e9f2896957e2f242c3e4302c73c7aaa 100644 (file)
@@ -885,9 +885,10 @@ impl<ChannelSigner: EcdsaChannelSigner> OnchainTxHandler<ChannelSigner> {
                                if let Some((claim_id, _)) = self.claimable_outpoints.get(&inp.previous_output) {
                                        // If outpoint has claim request pending on it...
                                        if let Some(request) = self.pending_claim_requests.get_mut(claim_id) {
-                                               //... we need to verify equality between transaction outpoints and claim request
-                                               // outpoints to know if transaction is the original claim or a bumped one issued
-                                               // by us.
+                                               //... we need to check if the pending claim was for a subset of the inputs
+                                               // spent by the confirmed transaction. If so, we can drop the pending claim
+                                               // after ANTI_REORG_DELAY blocks, otherwise we need to split it and retry
+                                               // claiming the remaining outputs.
                                                let mut is_claim_subset_of_tx = true;
                                                let mut tx_inputs = tx.input.iter().map(|input| &input.previous_output).collect::<Vec<_>>();
                                                tx_inputs.sort_unstable();