Skip to content

Commit 9134b05

Browse files
committed
f! clear on conflicting claim
1 parent 1923a1e commit 9134b05

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lightning/src/chain/onchaintx.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,12 @@ impl<ChannelSigner: WriteableEcdsaChannelSigner> OnchainTxHandler<ChannelSigner>
800800
//TODO: recompute soonest_timelock to avoid wasting a bit on fees
801801
if at_least_one_drop {
802802
bump_candidates.insert(*package_id, request.clone());
803+
// If we have any pending claim events for the request being updated
804+
// that have yet to be consumed, we'll remove them since they will
805+
// end up producing an invalid transaction by double spending
806+
// conflicting input(s).
807+
#[cfg(anchors)]
808+
self.pending_claim_events.retain(|entry| entry.0 != *package_id);
803809
}
804810
}
805811
break; //No need to iterate further, either tx is our or their

0 commit comments

Comments
 (0)