Skip to content

Commit 1b6e5e4

Browse files
committed
f update comment
1 parent c2d71b0 commit 1b6e5e4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lightning/src/chain/onchaintx.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -885,9 +885,10 @@ impl<ChannelSigner: EcdsaChannelSigner> OnchainTxHandler<ChannelSigner> {
885885
if let Some((claim_id, _)) = self.claimable_outpoints.get(&inp.previous_output) {
886886
// If outpoint has claim request pending on it...
887887
if let Some(request) = self.pending_claim_requests.get_mut(claim_id) {
888-
//... we need to verify equality between transaction outpoints and claim request
889-
// outpoints to know if transaction is the original claim or a bumped one issued
890-
// by us.
888+
//... we need to check if the pending claim was for a subset of the inputs
889+
// spent by the confirmed transaction. If so, we can drop the pending claim
890+
// after ANTI_REORG_DELAY blocks, otherwise we need to split it and retry
891+
// claiming the remaining outputs.
891892
let mut is_claim_subset_of_tx = true;
892893
let mut tx_inputs = tx.input.iter().map(|input| &input.previous_output).collect::<Vec<_>>();
893894
tx_inputs.sort_unstable();

0 commit comments

Comments
 (0)