@@ -2253,16 +2253,14 @@ impl ChannelMonitor {
2253
2253
}
2254
2254
}
2255
2255
}
2256
- let mut pending_claims = Vec :: new ( ) ;
2257
2256
if let Some ( ref cur_local_tx) = self . current_local_signed_commitment_tx {
2258
2257
if self . would_broadcast_at_height ( height) {
2259
2258
log_trace ! ( self , "Broadcast onchain {}" , log_tx!( cur_local_tx. tx) ) ;
2260
2259
broadcaster. broadcast_transaction ( & cur_local_tx. tx ) ;
2261
2260
match self . key_storage {
2262
2261
Storage :: Local { ref delayed_payment_base_key, ref latest_per_commitment_point, .. } => {
2263
- let ( txs, mut spendable_output, new_outputs, mut pending_txn ) = self . broadcast_by_local_state ( & cur_local_tx, latest_per_commitment_point, & Some ( * delayed_payment_base_key) , height) ;
2262
+ let ( txs, mut spendable_output, new_outputs, _ ) = self . broadcast_by_local_state ( & cur_local_tx, latest_per_commitment_point, & Some ( * delayed_payment_base_key) , height) ;
2264
2263
spendable_outputs. append ( & mut spendable_output) ;
2265
- pending_claims. append ( & mut pending_txn) ;
2266
2264
if !new_outputs. is_empty ( ) {
2267
2265
watch_outputs. push ( ( cur_local_tx. txid . clone ( ) , new_outputs) ) ;
2268
2266
}
@@ -2272,9 +2270,8 @@ impl ChannelMonitor {
2272
2270
}
2273
2271
} ,
2274
2272
Storage :: Watchtower { .. } => {
2275
- let ( txs, mut spendable_output, new_outputs, mut pending_txn ) = self . broadcast_by_local_state ( & cur_local_tx, & None , & None , height) ;
2273
+ let ( txs, mut spendable_output, new_outputs, _ ) = self . broadcast_by_local_state ( & cur_local_tx, & None , & None , height) ;
2276
2274
spendable_outputs. append ( & mut spendable_output) ;
2277
- pending_claims. append ( & mut pending_txn) ;
2278
2275
if !new_outputs. is_empty ( ) {
2279
2276
watch_outputs. push ( ( cur_local_tx. txid . clone ( ) , new_outputs) ) ;
2280
2277
}
@@ -2286,12 +2283,6 @@ impl ChannelMonitor {
2286
2283
}
2287
2284
}
2288
2285
}
2289
- for claim in pending_claims {
2290
- match self . our_claim_txn_waiting_first_conf . entry ( claim. 0 ) {
2291
- hash_map:: Entry :: Occupied ( _) => { } ,
2292
- hash_map:: Entry :: Vacant ( entry) => { entry. insert ( claim. 1 ) ; }
2293
- }
2294
- }
2295
2286
if let Some ( events) = self . onchain_events_waiting_threshold_conf . remove ( & height) {
2296
2287
for ev in events {
2297
2288
match ev {
0 commit comments