@@ -476,8 +476,8 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
476476 // remove it once it reaches the confirmation threshold, or to generate a new claim if the
477477 // transaction is reorged out.
478478 let mut all_inputs_have_confirmed_spend = true ;
479- for outpoint in & request_outpoints {
480- if let Some ( first_claim_txid_height) = self . claimable_outpoints . get ( outpoint) {
479+ for outpoint in request_outpoints. iter ( ) {
480+ if let Some ( first_claim_txid_height) = self . claimable_outpoints . get ( * outpoint) {
481481 // We check for outpoint spends within claims individually rather than as a set
482482 // since requests can have outpoints split off.
483483 if !self . onchain_events_awaiting_threshold_conf . iter ( )
@@ -811,7 +811,7 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
811811 for outpoint in request. outpoints ( ) {
812812 log_debug ! ( logger, "Removing claim tracking for {} due to maturation of claim package {}." ,
813813 outpoint, log_bytes!( package_id) ) ;
814- self . claimable_outpoints . remove ( & outpoint) ;
814+ self . claimable_outpoints . remove ( outpoint) ;
815815 #[ cfg( anchors) ]
816816 self . pending_claim_events . remove ( & package_id) ;
817817 }
@@ -820,7 +820,7 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
820820 OnchainEvent :: ContentiousOutpoint { package } => {
821821 log_debug ! ( logger, "Removing claim tracking due to maturation of claim tx for outpoints:" ) ;
822822 log_debug ! ( logger, " {:?}" , package. outpoints( ) ) ;
823- self . claimable_outpoints . remove ( & package. outpoints ( ) [ 0 ] ) ;
823+ self . claimable_outpoints . remove ( package. outpoints ( ) [ 0 ] ) ;
824824 }
825825 }
826826 } else {
@@ -898,7 +898,7 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
898898 //- resurect outpoint back in its claimable set and regenerate tx
899899 match entry. event {
900900 OnchainEvent :: ContentiousOutpoint { package } => {
901- if let Some ( ancestor_claimable_txid) = self . claimable_outpoints . get ( & package. outpoints ( ) [ 0 ] ) {
901+ if let Some ( ancestor_claimable_txid) = self . claimable_outpoints . get ( package. outpoints ( ) [ 0 ] ) {
902902 if let Some ( request) = self . pending_claim_requests . get_mut ( & ancestor_claimable_txid. 0 ) {
903903 request. merge_package ( package) ;
904904 // Using a HashMap guarantee us than if we have multiple outpoints getting
0 commit comments