File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -701,20 +701,14 @@ where
701
701
state_lock
702
702
. outputs
703
703
. iter ( )
704
- . filter_map ( |o| {
705
- if let Some ( confirmation_hash) = o. status . confirmation_hash ( ) {
706
- if let Some ( confirmation_height) = o. status . confirmation_height ( ) {
707
- if let Some ( latest_spending_tx) = o. status . latest_spending_tx ( ) {
708
- return Some ( (
709
- latest_spending_tx. txid ( ) ,
710
- confirmation_height,
711
- Some ( confirmation_hash) ,
712
- ) ) ;
713
- }
714
- }
715
- }
716
-
717
- None
704
+ . filter_map ( |o| match o. status {
705
+ OutputSpendStatus :: PendingThresholdConfirmations {
706
+ ref latest_spending_tx,
707
+ confirmation_height,
708
+ confirmation_hash,
709
+ ..
710
+ } => Some ( ( latest_spending_tx. txid ( ) , confirmation_height, Some ( confirmation_hash) ) ) ,
711
+ _ => None ,
718
712
} )
719
713
. collect :: < Vec < _ > > ( )
720
714
}
You can’t perform that action at this time.
0 commit comments