We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1923a1e commit 9134b05Copy full SHA for 9134b05
lightning/src/chain/onchaintx.rs
@@ -800,6 +800,12 @@ impl<ChannelSigner: WriteableEcdsaChannelSigner> OnchainTxHandler<ChannelSigner>
800
//TODO: recompute soonest_timelock to avoid wasting a bit on fees
801
if at_least_one_drop {
802
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);
809
}
810
811
break; //No need to iterate further, either tx is our or their
0 commit comments